]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: deny changing the native VLAN from the prepare phase
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 31 Oct 2020 10:29:15 +0000 (12:29 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Nov 2020 01:09:07 +0000 (17:09 -0800)
commite629ebaef0b488666e74ba77f4046e67005f152c
tree4b68b1c5e10b2f97738f4fbbd7d5fc4d2168ce32
parent5587ccc581a81873102a58e91dcb3a71712fa7aa
net: mscc: ocelot: deny changing the native VLAN from the prepare phase

Put the preparation phase of switchdev VLAN objects to some good use,
and move the check we already had, for preventing the existence of more
than one egress-untagged VLAN per port, to the preparation phase of the
addition.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/ocelot/felix.c
drivers/net/ethernet/mscc/ocelot.c
drivers/net/ethernet/mscc/ocelot_net.c
include/soc/mscc/ocelot.h