vnet: set vnet_buffer l2_hdr_offset and l3_hdr_offset 98/9698/3
authorSteven <sluong@cisco.com>
Mon, 4 Dec 2017 07:40:54 +0000 (23:40 -0800)
committerDamjan Marion <dmarion.lists@gmail.com>
Mon, 4 Dec 2017 20:18:21 +0000 (20:18 +0000)
commit35de3b3376d66fbd2b4d5dc849db2cdeabc892f4
tree497f5c861fbc0a9f18311f78335eeacd104593cc
parent2e292c6f6489015460e3fee8ec567791c897108e
vnet: set vnet_buffer l2_hdr_offset and l3_hdr_offset

Changes made in ethernet_input to set l2_hdr_offset,l3_hdr_offset, and
their corresponding flags.
Please note that ethernet_input, as a critical DP, incurs a few extra cpu
cycles due to this patch, but for a worthy cause.

Change-Id: Ie9ae352ea62959d2779ebcca98a1898e3d9e1d6f
Signed-off-by: Steven <sluong@cisco.com>
src/vnet/ethernet/node.c