Message ID | 20210415092610.953134-1-tobias@waldekranz.com |
---|---|
Headers | show |
Series | net: dsa: Allow default tag protocol to be overridden from DT | expand |
On Thu, Apr 15, 2021 at 11:26:07AM +0200, Tobias Waldekranz wrote: > For devices that supports both regular and Ethertyped DSA tags, allow > the user to change the protocol. > > Additionally, because there are ethernet controllers that do not > handle regular DSA tags in all cases, also allow the protocol to be > changed on devices with undocumented support for EDSA. But, in those > cases, make sure to log the fact that an undocumented feature has been > enabled. > > Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com> > --- Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
On 4/15/2021 2:26 AM, Tobias Waldekranz wrote: > All devices are capable of using regular DSA tags. Support for > Ethertyped DSA tags sort into three categories: > > 1. No support. Older chips fall into this category. > > 2. Full support. Datasheet explicitly supports configuring the CPU > port to receive FORWARDs with a DSA tag. > > 3. Undocumented support. Datasheet lists the configuration from > category 2 as "reserved for future use", but does empirically > behave like a category 2 device. > > So, instead of listing the one true protocol that should be used by a > particular chip, specify the level of support for EDSA (support for > regular DSA is implicit on all chips). As before, we use EDSA for all > chips that fully supports it. > > In upcoming changes, we will use this information to support > dynamically changing the tag protocol. > > Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>