]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: add a new best_effort_vlan_filtering devlink parameter
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 12 May 2020 17:20:35 +0000 (20:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 May 2020 20:08:08 +0000 (13:08 -0700)
commit0b1c67331cc8aa315db264780f55def8f3e0bc3c
tree7fe3125a0ec7c22404511b134e5a1b8ac16d3140
parentd612b31f6cd1ed0b0a60359018710da849680336
net: dsa: sja1105: add a new best_effort_vlan_filtering devlink parameter

This devlink parameter enables the handling of DSA tags when enslaved to
a bridge with vlan_filtering=1. There are very good reasons to want
this, but there are also very good reasons for not enabling it by
default. So a devlink param named best_effort_vlan_filtering, currently
driver-specific and exported only by sja1105, is used to configure this.

In practice, this is perhaps the way that most users are going to use
the switch in. It assumes that no more than 7 VLANs are needed per port.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105.h
drivers/net/dsa/sja1105/sja1105_main.c