]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: dont drop packets from unknown vlans in promiscuous mode
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 30 Sep 2010 02:16:44 +0000 (02:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Oct 2010 01:04:21 +0000 (18:04 -0700)
commit910c28bb2f10b8a0cadee9e84d1f67792e59459f
tree0812b62ac5ae74b605109372437aaaacb6495234
parentfd660bd33dffa7ecb20a45d06c56fd19a4aa47cd
vlan: dont drop packets from unknown vlans in promiscuous mode

Roger Luethi noticed packets for unknown VLANs getting silently dropped
even in promiscuous mode.

Check for promiscuous mode in __vlan_hwaccel_rx() and vlan_gro_common()
before drops.

As suggested by Patrick, mark such packets to have skb->pkt_type set to
PACKET_OTHERHOST to make sure they are dropped by IP stack.

Reported-by: Roger Luethi <rl@hellgate.ch>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_core.c