summaryrefslogtreecommitdiffstats
path: root/src/vnet/l2/l2_input.h
diff options
context:
space:
mode:
authorJohn Lo <loj@cisco.com>2017-03-24 20:11:15 -0400
committerDamjan Marion <dmarion.lists@gmail.com>2017-03-28 12:29:10 +0000
commitda1f2c7cffb0de4ef05a48ffd107214eb11fa45f (patch)
tree56267e11122a2de325d204b8ad5fb49884eec93c /src/vnet/l2/l2_input.h
parent6792ec059696a358b6c98d8d86e9740b34c01e24 (diff)
Implement MAC Flush for BD or Interface from the L2FIB
Allow non-static MACs in the L2FIB which is associated with an interface or a bridge domain (BD) be flushed. MAC flush are initiated automatically when an interface is removed from a BD or when a BD is deleted. MAC flush can also be invoked manually via the following CLI: l2fib mac-flush interface <if-name> l2fib mac-flush bridge-domain <bd-id> Change-Id: Ie33243622834810a765f48ebcd22bdb8e8fc87a4 Signed-off-by: John Lo <loj@cisco.com>
Diffstat (limited to 'src/vnet/l2/l2_input.h')
-rw-r--r--src/vnet/l2/l2_input.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/l2/l2_input.h b/src/vnet/l2/l2_input.h
index f3fada6a7d3..262f75c7e64 100644
--- a/src/vnet/l2/l2_input.h
+++ b/src/vnet/l2/l2_input.h
@@ -53,6 +53,9 @@ typedef struct
/* split horizon group */
u8 shg;
+ /* sequence number for interface based flush of MACs */
+ u8 seq_num;
+
} l2_input_config_t;