aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/replication.h
diff options
context:
space:
mode:
authorSteve Shin <jonshin@cisco.com>2017-11-13 15:46:35 -0800
committerSteve Shin <jonshin@cisco.com>2017-11-14 03:45:24 +0000
commitd594711a5d79859a7d0bde83a516f7ab52051d9b (patch)
tree4cc2908df3598507cc1828ac19d8c43b22450ffa /src/vnet/replication.h
parent5b99133cff1ff0eb9043dd8bd3648b0b3aafa47e (diff)
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> (cherry picked from commit 49806fe252030a4cd993f598ff65a89590d57388)
Diffstat (limited to 'src/vnet/replication.h')
-rw-r--r--src/vnet/replication.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/replication.h b/src/vnet/replication.h
index 42ec69a4..531a61c2 100644
--- a/src/vnet/replication.h
+++ b/src/vnet/replication.h
@@ -43,12 +43,13 @@ typedef struct
/* data saved from the original packet and restored for each replica */
u64 l2_header[3]; /* 24B (must be at least 22B for l2 packets) */
+ u32 flags; /* vnet buffer flags */
u16 ip_tos; /* v4 and v6 */
u16 ip4_checksum; /* needed for v4 only */
/* data saved from the vlib buffer header and restored for each replica */
i16 current_data; /* offset of first byte of packet in packet data */
- u8 pad[6]; /* to 64B */
+ u8 pad[2]; /* to 64B */
u8 l2_packet; /* flag for l2 vs l3 packet data */
} replication_context_t; /* 128B */