]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: Don't propagate flag changes on down interfaces.
authorMatthijs Kooijman <matthijs@stdin.nl>
Mon, 31 Oct 2011 04:53:13 +0000 (04:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Nov 2011 21:51:03 +0000 (17:51 -0400)
commitf8f02060dc74979d7a9081bac2a8c8887331a455
treedac4959510095dfabdcd5b04186e8c9050cf90ec
parent2dbcbae7bc77b25df5cb111867216e34a9b44200
vlan: Don't propagate flag changes on down interfaces.

When (de)configuring a vlan interface, the IFF_ALLMULTI ans IFF_PROMISC
flags are cleared or set on the underlying interface. So, if these flags
are changed on a vlan interface that is not up, the flags underlying
interface might be set or cleared twice.

Only propagating flag changes when a device is up makes sure this does
not happen. It also makes sure that an underlying device is not set to
promiscuous or allmulti mode for a vlan device that is down.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_dev.c