]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: reset headers on accel emulation path
authorJiri Pirko <jpirko@redhat.com>
Fri, 19 Aug 2011 04:29:27 +0000 (21:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2011 04:29:27 +0000 (21:29 -0700)
commitca0f17a55cfe15f9936990e9e7c5757d9caadcf9
tree3e9d8fcc3cd02d588b2ffbba0450f4feba3e5e17
parentc8188a56c24ea98942a604154e3c76e47a900563
vlan: reset headers on accel emulation path

It's after all necessary to do reset headers here. The reason is we
cannot depend that it gets reseted in __netif_receive_skb once skb is
reinjected. For incoming vlanids without vlan_dev, vlan_do_receive()
returns false with skb != NULL and __netif_reveive_skb continues, skb is
not reinjected.

This might be good material for 3.0-stable as well

Reported-by: Mike Auty <mike.auty@gmail.com>
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_core.c