aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/l2/l2_input.c
diff options
context:
space:
mode:
authorEyal Bari <ebari@cisco.com>2017-04-27 14:07:55 +0300
committerJohn Lo <loj@cisco.com>2017-05-08 12:33:17 +0000
commit7537e717d1ca6de0e33478bc50b9f7125f04c808 (patch)
tree43006c833fe8caa85231160db94866d348a52cca /src/vnet/l2/l2_input.c
parent57d7dbc8bf8a49ee2421fe97bd3ed7099d2384bf (diff)
L2FIB:CLI/API to flush all non-static entries
added CLI l2fib flush-mac all added API l2fib_flush_all flushes all non static l2fib entries on all valid BDs Change-Id: Ic963c88f4bed56308c03ab43106033132a0e87be Signed-off-by: Eyal Bari <ebari@cisco.com>
Diffstat (limited to 'src/vnet/l2/l2_input.c')
-rw-r--r--src/vnet/l2/l2_input.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/vnet/l2/l2_input.c b/src/vnet/l2/l2_input.c
index fe65e694f3b..41a93f56332 100644
--- a/src/vnet/l2/l2_input.c
+++ b/src/vnet/l2/l2_input.c
@@ -202,8 +202,14 @@ classify_and_dispatch (vlib_main_t * vm,
/* Get config for the bridge domain interface */
bd_config = vec_elt_at_index (msm->bd_configs, bd_index0);
- /* Save bridge domain seq_num */
- vnet_buffer (b0)->l2.bd_sn = bd_config->seq_num;
+ /* Save bridge domain and interface seq_num */
+ /* *INDENT-OFF* */
+ l2fib_seq_num_t sn = {
+ .swif = config->seq_num,
+ .bd = bd_config->seq_num,
+ };
+ /* *INDENT-ON* */
+ vnet_buffer (b0)->l2.l2fib_sn = sn.as_u16;;
/*
* Process bridge domain feature enables.
@@ -218,9 +224,6 @@ classify_and_dispatch (vlib_main_t * vm,
/* mask out features from bitmap using packet type and bd config */
feature_bitmap = config->feature_bitmap & feat_mask;
- /* Save interface seq_num */
- vnet_buffer (b0)->l2.int_sn = config->seq_num;
-
/* save for next feature graph nodes */
vnet_buffer (b0)->l2.feature_bitmap = feature_bitmap;