diff options
author | Matthijs Kooijman <matthijs@stdin.nl> | 2011-10-31 05:53:13 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-01 22:51:03 +0100 |
commit | deede2fabe24e00bd7e246eb81cd5767dc6fcfc7 (patch) | |
tree | dac4959510095dfabdcd5b04186e8c9050cf90ec /include/net | |
parent | neigh: Kill bogus SMP protected debugging message. (diff) | |
download | linux-deede2fabe24e00bd7e246eb81cd5767dc6fcfc7.tar.xz linux-deede2fabe24e00bd7e246eb81cd5767dc6fcfc7.zip |
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>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions