Fix detection of packet output via BVI into a BD and SHG adjustment 98/3098/3
authorJohn Lo <loj@cisco.com>
Thu, 22 Sep 2016 22:24:13 +0000 (18:24 -0400)
committerDamjan Marion <dmarion.lists@gmail.com>
Fri, 23 Sep 2016 07:52:44 +0000 (07:52 +0000)
commit20e555155d9a707be05f7b4e3ee78f3f14820fc8
treec4db1e6b4eebdab0fa97499281590be0cee8b908
parent36d25063828f65a6e864bc56b488bef3c4abcaa4
Fix detection of packet output via BVI into a BD and SHG adjustment

In BVI output node, set a signature value in packet buffer field
sw_if_index[VLIB_TX] so l2-input node can reliably check that
packet came into a BD through BVI so it can set the SHG of the
packet to 0 for a unicast packet.

Change-Id: I301aa2896677e11d0c964ca476dddcb5a8804fc2
Signed-off-by: John Lo <loj@cisco.com>
vnet/vnet/ethernet/interface.c
vnet/vnet/l2/l2_input.c
vnet/vnet/l2/l2_input.h