aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/Kconfig
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2022-02-16 20:48:18 +0000
committerJakub Kicinski <kuba@kernel.org>2022-02-17 09:32:13 -0800
commit430065e2671905ac675f97b7af240cc255964e93 (patch)
tree6e247bd1ed304570e1215532bc574da887f85a19 /drivers/net/dsa/Kconfig
parentnet: dsa: lan9303: handle hwaccel VLAN tags (diff)
downloadlinux-dev-430065e2671905ac675f97b7af240cc255964e93.tar.xz
linux-dev-430065e2671905ac675f97b7af240cc255964e93.zip
net: dsa: lan9303: add VLAN IDs to master device
If the master device does VLAN filtering, the IDs used by the switch must be added for any frames to be received. Do this in the port_enable() function, and remove them in port_disable(). Fixes: a1292595e006 ("net: dsa: add new DSA switch driver for the SMSC-LAN9303") Signed-off-by: Mans Rullgard <mans@mansr.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Link: https://lore.kernel.org/r/20220216204818.28746-1-mans@mansr.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/Kconfig')
-rw-r--r--drivers/net/dsa/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/Kconfig b/drivers/net/dsa/Kconfig
index c0c91440340a..0029d279616f 100644
--- a/drivers/net/dsa/Kconfig
+++ b/drivers/net/dsa/Kconfig
@@ -82,6 +82,7 @@ config NET_DSA_REALTEK_SMI
config NET_DSA_SMSC_LAN9303
tristate
+ depends on VLAN_8021Q || VLAN_8021Q=n
select NET_DSA_TAG_LAN9303
select REGMAP
help