]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: fix duplicate vlan warning
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 26 Feb 2020 17:14:26 +0000 (17:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 04:58:33 +0000 (20:58 -0800)
commit4c3b3c43ed5fca26fdc3406cf788cc900ca1be2d
treeda4d8a859ee5b24b6c2081d4f4e2086050fc2540
parent1312c9672ab58afcbaf914bd2a558c77e8d0d1b4
net: dsa: mv88e6xxx: fix duplicate vlan warning

When setting VLANs on DSA switches, the VLAN is added to both the port
concerned as well as the CPU port by dsa_slave_vlan_add(), as well as
any DSA ports.  If multiple ports are configured with the same VLAN ID,
this triggers a warning on the CPU and DSA ports.

Avoid this warning for CPU and DSA ports.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c