VLAN: Don't copy ALLMULTI/PROMISC flags from underlying device
authorPatrick McHardy <kaber@trash.net>
Mon, 7 Apr 2008 06:46:45 +0000 (23:46 -0700)
committerChris Wright <chrisw@sous-sol.org>
Sat, 19 Apr 2008 01:53:26 +0000 (18:53 -0700)
commit1814e31332384ae44b9ed55f0393faacfa52f02a
treee04c783931ac315364df29f1978b78622d5bf39f
parent276be82fbc8970d7dac375493d699f8bea015e7f
VLAN: Don't copy ALLMULTI/PROMISC flags from underlying device

Upstream commit: 0ed21b321a13421e2dfeaa70a6c324e05e3e91e6

Changing these flags requires to use dev_set_allmulti/dev_set_promiscuity
or dev_change_flags. Setting it directly causes two unwanted effects:

- the next dev_change_flags call will notice a difference between
  dev->gflags and the actual flags, enable promisc/allmulti
  mode and incorrectly update dev->gflags

- this keeps the underlying device in promisc/allmulti mode until
  the VLAN device is deleted

[ Ported back to 2.6.24 VLAN code. -DaveM ]

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/8021q/vlan.c