]> 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)
commite6616db61b8f42dc334d7b7054c8c004634348b6
tree4b68b1c5e10b2f97738f4fbbd7d5fc4d2168ce32
parent8b054cc7eda67c7da45214c222a12f89ec284630
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