l2-flood: fix restore vnet buffer's flags in the replication routine
authorSteve Shin <[email protected]>
Mon, 13 Nov 2017 23:46:35 +0000 (15:46 -0800)
committerSteve Shin <[email protected]>
Tue, 14 Nov 2017 03:45:24 +0000 (03:45 +0000)
commitd594711a5d79859a7d0bde83a516f7ab52051d9b
tree4cc2908df3598507cc1828ac19d8c43b22450ffa
parent5b99133cff1ff0eb9043dd8bd3648b0b3aafa47e
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 <[email protected]>
(cherry picked from commit 49806fe252030a4cd993f598ff65a89590d57388)
src/vnet/replication.c
src/vnet/replication.h