]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Feb 2022 17:32:13 +0000 (09:32 -0800)
commit1303b3d9d2467b36a5356c3b4e44fc52f6a7e831
tree6e247bd1ed304570e1215532bc574da887f85a19
parent6fea2baebc017bd73e55fd6b1711da461cb65549
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: 85bad8d1801c ("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>
drivers/net/dsa/Kconfig
drivers/net/dsa/lan9303-core.c