diff options
author | 2018-03-13 14:51:28 +0900 | |
---|---|---|
committer | 2018-03-16 10:03:47 -0400 | |
commit | cbe7128c4b92e2004984f477fd38dfa81662f02e (patch) | |
tree | 7805f8eec1279109bf15a6177f286a0aacbf017c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: Fix vlan untag for bridge and vlan_dev with reorder_hdr off (diff) | |
download | wireguard-linux-cbe7128c4b92e2004984f477fd38dfa81662f02e.tar.xz wireguard-linux-cbe7128c4b92e2004984f477fd38dfa81662f02e.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions