l2-flood: fix restore vnet buffer's flags in the replication routine 06/9406/2
authorSteve Shin <jonshin@cisco.com>
Mon, 13 Nov 2017 23:46:35 +0000 (15:46 -0800)
committerJohn Lo <loj@cisco.com>
Tue, 14 Nov 2017 03:08:50 +0000 (03:08 +0000)
commit49806fe252030a4cd993f598ff65a89590d57388
tree5e50408039f2258331e9c1bb772a79b323f8b565
parent9324284af8d8436ce434e3da58e8eabbe609cb56
l2-flood: fix restore vnet buffer's flags in the replication routine

When BUM packets are flooded in the l2 domain, some data should be
kept and restored for recycling in the replication routine.
If l2 bridge domain has multiple interfaces mixed with normal and
vlan tagged, the vlan tag value of the vnet buffer can be changed
while flooding the replicated packets. The change is made to store
and restore the original vlan tag in the replication logic.

Change-Id: I399cf54cd2e74cb44a2be42241bdc4fba85032c5
Signed-off-by: Steve Shin <jonshin@cisco.com>
src/vnet/replication.c
src/vnet/replication.h