aboutsummaryrefslogtreecommitdiffstats
path: root/vpp
diff options
context:
space:
mode:
Diffstat (limited to 'vpp')
-rw-r--r--vpp/vpp-api/api.c4
-rw-r--r--vpp/vpp-api/custom_dump.c1
-rw-r--r--vpp/vpp-api/vpe.api1
3 files changed, 5 insertions, 1 deletions
diff --git a/vpp/vpp-api/api.c b/vpp/vpp-api/api.c
index 767b9d5d..6041b11e 100644
--- a/vpp/vpp-api/api.c
+++ b/vpp/vpp-api/api.c
@@ -1652,6 +1652,7 @@ vl_api_l2fib_add_del_t_handler (
u32 bd_index;
u32 static_mac;
u32 filter_mac;
+ u32 bvi_mac;
uword * p;
mac = mp->mac;
@@ -1678,8 +1679,9 @@ vl_api_l2fib_add_del_t_handler (
}
static_mac = mp->static_mac ? 1 : 0;
filter_mac = mp->filter_mac ? 1 : 0;
+ bvi_mac = mp->bvi_mac ? 1 : 0;
l2fib_add_entry(mac, bd_index, sw_if_index, static_mac, filter_mac,
- 0 /* bvi_mac */);
+ bvi_mac);
} else {
l2fib_del_entry(mac, bd_index);
}
diff --git a/vpp/vpp-api/custom_dump.c b/vpp/vpp-api/custom_dump.c
index d28882f6..a2eb1f27 100644
--- a/vpp/vpp-api/custom_dump.c
+++ b/vpp/vpp-api/custom_dump.c
@@ -240,6 +240,7 @@ static void *vl_api_l2fib_add_del_t_print
s = format (s, "sw_if_index %d ", ntohl(mp->sw_if_index));
if (mp->static_mac) s = format (s, "%s", "static ");
if (mp->filter_mac) s = format (s, "%s", "filter ");
+ if (mp->bvi_mac) s = format (s, "%s", "bvi ");
} else {
s = format (s, "del ");
}
diff --git a/vpp/vpp-api/vpe.api b/vpp/vpp-api/vpe.api
index bf13efb8..f61a3045 100644
--- a/vpp/vpp-api/vpe.api
+++ b/vpp/vpp-api/vpe.api
@@ -1392,6 +1392,7 @@ define l2fib_add_del {
u8 is_add;
u8 static_mac;
u8 filter_mac;
+ u8 bvi_mac;
};
/** \brief L2 FIB add entry response