aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/vxlan-gbp/vxlan_gbp.h
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2018-10-24 12:17:50 +0200
committerDamjan Marion <dmarion@me.com>2018-10-26 19:51:43 +0000
commitf208b02624403eeb576b53517a64344dfc76aef2 (patch)
tree4cc9ca11acc1552351cf900948d5e41215be64de /src/vnet/vxlan-gbp/vxlan_gbp.h
parent40421a17c744b504891324c41a9a78d2fb702fe5 (diff)
vxlan-gbp: On demand udp ports registration
Change-Id: I3a47c71ad3e35df47d11fed6db95019a45f3015f Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/vxlan-gbp/vxlan_gbp.h')
-rw-r--r--src/vnet/vxlan-gbp/vxlan_gbp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vnet/vxlan-gbp/vxlan_gbp.h b/src/vnet/vxlan-gbp/vxlan_gbp.h
index 755205fc9ea..f9edcdcbd93 100644
--- a/src/vnet/vxlan-gbp/vxlan_gbp.h
+++ b/src/vnet/vxlan-gbp/vxlan_gbp.h
@@ -162,6 +162,9 @@ typedef struct
/* Mapping from sw_if_index to tunnel index */
u32 *tunnel_index_by_sw_if_index;
+ /* On demand udp port registration */
+ u32 udp_ports_registered;
+
/* convenience */
vlib_main_t *vlib_main;
vnet_main_t *vnet_main;
@@ -176,6 +179,8 @@ extern vlib_node_registration_t vxlan4_gbp_input_node;
extern vlib_node_registration_t vxlan6_gbp_input_node;
extern vlib_node_registration_t vxlan4_gbp_encap_node;
extern vlib_node_registration_t vxlan6_gbp_encap_node;
+extern void vxlan_gbp_register_udp_ports (void);
+extern void vxlan_gbp_unregister_udp_ports (void);
u8 *format_vxlan_gbp_encap_trace (u8 * s, va_list * args);