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)
commit9a99bef5f87f2fb025e9a51ff4ad820f7b8a9ffb
tree45ad5c0d0fc4f608911a12dcdae955538a76375f
parent670bb80f8196ab2189e7f51473da236450dca1aa
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