summaryrefslogtreecommitdiffstats
path: root/src/plugins/gbp/gbp_bridge_domain.h
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-06-26 13:58:09 +0200
committerNeale Ranns <nranns@cisco.com>2019-07-02 14:18:59 +0000
commit2ec825937b7ac856f67d086ce6814dd21c5e9bd7 (patch)
treeadd7b051c3ff3f1f4437efbf2f3a3e8279f79b4f /src/plugins/gbp/gbp_bridge_domain.h
parent12df497bb6b7f60513f48c0dacca9ad99d717192 (diff)
gbp: disable L2 BD learning per-interface
Disable L2 BD learning for each GBP interface instead of at the bridge level. This does not change the current behavior (learning is disabled for all GBP interfaces) but enables turning it on selectively for future features such as anonymous l3-out. Type: refactor Change-Id: Id88644277941d703600acf97d49cbc3332ae3f68 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins/gbp/gbp_bridge_domain.h')
-rw-r--r--src/plugins/gbp/gbp_bridge_domain.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/gbp/gbp_bridge_domain.h b/src/plugins/gbp/gbp_bridge_domain.h
index 5bfa099f31d..67043685ea3 100644
--- a/src/plugins/gbp/gbp_bridge_domain.h
+++ b/src/plugins/gbp/gbp_bridge_domain.h
@@ -19,6 +19,7 @@
#include <plugins/gbp/gbp_types.h>
#include <vnet/fib/fib_types.h>
+#include <vnet/l2/l2_bd.h>
/**
* Bridge Domain Flags
@@ -84,6 +85,11 @@ typedef struct gbp_bridge_domain_t_
u32 gb_locks;
} gbp_bridge_domain_t;
+extern void gbp_bridge_domain_itf_add (u32 sw_if_index, u32 bd_index,
+ l2_bd_port_type_t type);
+extern void gbp_bridge_domain_itf_del (u32 sw_if_index, u32 bd_index,
+ l2_bd_port_type_t type);
+
extern int gbp_bridge_domain_add_and_lock (u32 bd_id,
u32 rd_id,
gbp_bridge_domain_flags_t flags,