]> git.proxmox.com Git - mirror_ovs.git/commit
datapath: backport: Fix vlan_insert_tag_set_proto().
authorYang, Yi Y <yi.y.yang@intel.com>
Mon, 13 Feb 2017 02:39:16 +0000 (10:39 +0800)
committerJoe Stringer <joe@ovn.org>
Thu, 2 Mar 2017 02:00:43 +0000 (18:00 -0800)
commit42b0cf5fe74793df27515a9f723b7619ddeae943
tree922f8c24ca82d3b98c751c270b2827d0d487e4d9
parent27b5fbb25e367a37cf631792ddca19c0ca547824
datapath: backport: Fix vlan_insert_tag_set_proto().

Fix cvlan test failure on old kernel versions with 802.1ad. The root
cause is the upcall re-inserts the VLAN back into the raw packet data,
but the TPID is hard coded to 0x8100. This affects kernels for which
HAVE_VLAN_INSERT_TAG_SET_PROTO is not set.

The below patch allows the cvlan and 802.ad tests to pass on debian
with 3.16 kernel.

Signed-off-by: Eric Garver <e@erig.me>
Signed-off-by: Yi Yang <yi.y.yang@intel.com>
Acked-by: Eric Garver <e@erig.me>
Signed-off-by: Joe Stringer <joe@ovn.org>
datapath/linux/compat/include/linux/if_vlan.h