]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: vlan: enforce no pvid flag in vlan ranges
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Sun, 11 Oct 2015 10:49:56 +0000 (12:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Oct 2015 02:59:15 +0000 (19:59 -0700)
commitc82f4f916b4fa958ff6ddadead03ab6aee3cd63d
treede0a5d416660a96ef4248d0e5953b1bd8b1e8ff1
parent4f5162cddd705064275a5c300dc9063ee185630e
bridge: vlan: enforce no pvid flag in vlan ranges

Currently it's possible for someone to send a vlan range to the kernel
with the pvid flag set which will result in the pvid bouncing from a
vlan to vlan and isn't correct, it also introduces problems for hardware
where it doesn't make sense having more than 1 pvid. iproute2 already
enforces this, so let's enforce it on kernel-side as well.

Reported-by: Elad Raz <eladr@mellanox.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netlink.c