VLAN support on host(af-packet) interface. 35/8435/6
authorAkshaya N <akshaya@rtbrick.com>
Fri, 15 Sep 2017 12:07:53 +0000 (17:37 +0530)
committerDamjan Marion <dmarion.lists@gmail.com>
Wed, 27 Sep 2017 18:22:37 +0000 (18:22 +0000)
commit535f0bfe0274e86c5d2e00dfd66dd632c6ae20a9
tree015c69e7cafa65395e41b0bd69908c0c0f88fdae
parentd51020cdfc1c023f1953a7b6970f12cf09985900
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 <akshaya@rtbrick.com>
src/vnet/devices/af_packet/node.c