VLAN support on host(af-packet) interface. 90/8590/1
authorAkshaya N <[email protected]>
Fri, 15 Sep 2017 12:07:53 +0000 (17:37 +0530)
committerDave Barach <[email protected]>
Thu, 28 Sep 2017 19:49:20 +0000 (19:49 +0000)
commit7feb35f9fecdbc518945364d3b8ba259ce42d949
tree89fc8e6cf83d1dfb7efc2fbbcf6d15d2b0844270
parent839fa732c1a769d3aa9699192a0f06a969ddbda2
VLAN support on host(af-packet) interface.

On host interface if a VLAN tagged packet is received, linux kernel removes
the VLAN header from packet byte stream and adds metadata in tpacket2_hdr.
This patch explicitely checks for the presense of VLAN metadata and adds it
in VPP packet.

Change-Id: I0ba35c1e98dbc008ce18d032f22f2717d610c1aa
Signed-off-by: Akshaya N <[email protected]>
(cherry picked from commit 535f0bfe0274e86c5d2e00dfd66dd632c6ae20a9)
src/vnet/devices/af_packet/node.c