Fix L2 flood packet replication interaction with VXLAN-tunnel
authorJohn Lo <[email protected]>
Wed, 23 Mar 2016 23:44:39 +0000 (19:44 -0400)
committerJohn Lo <[email protected]>
Wed, 23 Mar 2016 23:44:39 +0000 (19:44 -0400)
commite2efecec426245163ae0abe00ca8ff368556c480
tree8609b00b7d21df2c3c5e7b4fef60fecaf3bb25ea
parentd90df1820ae003fb8de2f51cc35b8c4f498e024d
Fix L2 flood packet replication interaction with VXLAN-tunnel

The check for input sw_if_index against output sw_if_index is not correct
for the interface on the replication order after VXLAN tunnel because the
encap code overwrite packet sw_if_index[VLIB_RX] with that of the VXLAN
tunnel sw_if_index. The check should be done using sw_if_index[VLIB_RX]
saved in the packet context.

Change-Id: I175717221409977e80576e84dfe5362d1f6aed2f
Signed-off-by: John Lo <[email protected]>
vnet/vnet/l2/l2_flood.c