]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Allow dynamic reconfiguration of tag protocol
authorTobias Waldekranz <tobias@waldekranz.com>
Tue, 20 Apr 2021 18:53:08 +0000 (20:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Apr 2021 23:51:19 +0000 (16:51 -0700)
commit1a922183da1f69b1cf2e30d43bd5d14781e4352f
tree45ad5c0d0fc4f608911a12dcdae955538a76375f
parentbf51d4d061a319781bc85faf9af6f364a286b799
net: dsa: mv88e6xxx: Allow dynamic reconfiguration of tag protocol

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>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c