]> git.proxmox.com Git - mirror_ovs.git/commit - lib/netdev-linux.c
netdev-linux: double tagged packets should use 0x88a8
authorEric Garver <e@erig.me>
Tue, 4 Oct 2016 14:14:46 +0000 (10:14 -0400)
committerBen Pfaff <blp@ovn.org>
Tue, 4 Oct 2016 15:47:18 +0000 (08:47 -0700)
commit1ebdc7eb8112a89f924061f36d015e5f275e071f
tree8417d4074b9640f160670245838c442b31d7c131
parent47d5c1e0524330b852a0abbf6a64142175fc3d3c
netdev-linux: double tagged packets should use 0x88a8

We need to check if a packet is double tagged. If so make sure to push
0x88a8 instead of 0x8100. Without this a simple port redirect of 802.1ad
frames means the outer tag gets translated from 0x88a8 to 0x8100 by the
userspace datapath.

This only affected kernels that don't use TP_STATUS_VLAN_TPID_VALID,
which is kernels < 3.14.

Signed-off-by: Eric Garver <e@erig.me>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/netdev-linux.c