diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2019-06-12 13:59:00 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-06-19 19:39:22 +0000 |
commit | 6ac96762dc2631bb1c720057f2b9dd854c69b767 (patch) | |
tree | f78432803b0be6ec5c6b19918709a0a3d15e4b14 /src/plugins/gbp | |
parent | bc764c8bc26282445901dc9aa32223a13f18e8dc (diff) |
gbp: Add support for arp unicast forward in gbp bridge domain
Type: feature
Change-Id: Id487fe46194d0a89bd5ac53a9f4ff78b5ff6de60
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/plugins/gbp')
-rw-r--r-- | src/plugins/gbp/gbp_bridge_domain.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/plugins/gbp/gbp_bridge_domain.c b/src/plugins/gbp/gbp_bridge_domain.c index 73daa9d6d80..53105451d6c 100644 --- a/src/plugins/gbp/gbp_bridge_domain.c +++ b/src/plugins/gbp/gbp_bridge_domain.c @@ -213,7 +213,8 @@ gbp_bridge_domain_add_and_lock (u32 bd_id, MODE_L2_BRIDGE, gb->gb_bvi_sw_if_index, bd_index, L2_BD_PORT_TYPE_BVI, 0, 0); - if (!(flags & GBP_BD_FLAG_UU_FWD_DROP) + if ((!(flags & GBP_BD_FLAG_UU_FWD_DROP) + || (flags & GBP_BD_FLAG_UCAST_ARP)) && ~0 != gb->gb_uu_fwd_sw_if_index) { set_int_l2_mode (vlib_get_main (), vnet_get_main (), @@ -234,6 +235,12 @@ gbp_bridge_domain_add_and_lock (u32 bd_id, */ bd_set_flags (vlib_get_main (), bd_index, bd_flags, 0); + if (flags & GBP_BD_FLAG_UCAST_ARP) + { + bd_flags = L2_ARP_UFWD; + bd_set_flags (vlib_get_main (), bd_index, bd_flags, 1); + } + /* * Add the BVI's MAC to the L2FIB */ |