original_kernel/net/8021q
Toshiaki Makita cbe7128c4b vlan: Fix out of order vlan headers with reorder header off
With reorder header off, received packets are untagged in skb_vlan_untag()
called from within __netif_receive_skb_core(), and later the tag will be
inserted back in vlan_do_receive().

This caused out of order vlan headers when we create a vlan device on top
of another vlan device, because vlan_do_receive() inserts a tag as the
outermost vlan tag. E.g. the outer tag is first removed in skb_vlan_untag()
and inserted back in vlan_do_receive(), then the inner tag is next removed
and inserted back as the outermost tag.

This patch fixes the behaviour by inserting the inner tag at the right
position.

Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-03-16 10:03:47 -04:00
..
Kconfig
Makefile
vlan.c
vlan.h
vlan_core.c vlan: Fix out of order vlan headers with reorder header off 2018-03-16 10:03:47 -04:00
vlan_dev.c
vlan_gvrp.c
vlan_mvrp.c
vlan_netlink.c
vlanproc.c net: delete /proc THIS_MODULE references 2018-01-16 15:01:33 -05:00
vlanproc.h