ETH:fix l2_len/vlan count mismatch for > 2 tags 20/7120/2
authorEyal Bari <ebari@cisco.com>
Tue, 13 Jun 2017 09:09:37 +0000 (12:09 +0300)
committerJohn Lo <loj@cisco.com>
Wed, 14 Jun 2017 07:08:18 +0000 (07:08 +0000)
commit6f7ebf900e6c65b73f8bb8f60ab5190cc2c893bc
treeed5ea4c76a6404768489d4a220552da771e256fd
parent89111d0403c462e6a98e2452d4caa540da1c8587
ETH:fix l2_len/vlan count mismatch for > 2 tags

l2_len was not updated for the third tag
as the ethernet node retracts by the vlan count after parse_header (using
ethernet_buffer_header_size) it ends up pointing before the ethernet header

+ some minor cleanups

Change-Id: I4ccaedd33928912e5d837376f146503b27071741
Signed-off-by: Eyal Bari <ebari@cisco.com>
src/vnet/ethernet/node.c
src/vnet/l2/l2_input_vtr.c
src/vnet/l2/l2_vtr.c