net: dsa: lan9303: add VLAN IDs to master device
authorMans Rullgard <mans@mansr.com>
Wed, 16 Feb 2022 20:48:18 +0000 (20:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 11:03:11 +0000 (12:03 +0100)
commit4b27446b538dcd6bc94e84e8c23e8631147d9fac
treeb75bb00b4d2ae0fb0d2be2a784c4d3aee9894bba
parent860c5c275ed2ff1751f28504be4179b2db90826c
net: dsa: lan9303: add VLAN IDs to master device

commit 430065e2671905ac675f97b7af240cc255964e93 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/dsa/Kconfig
drivers/net/dsa/lan9303-core.c