]> 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)
commitad2799cf31109bf359234073913702e134ab3587
tree7fe3125a0ec7c22404511b134e5a1b8ac16d3140
parentdc3006d782ecccab985dff6e024a3da5e71d743c
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