From fbac9605a798444d5845d8dfa179ccb92f33fc0f Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 4 Oct 2018 18:42:57 -0400 Subject: lib, zebra: Allow the specification of BUM flooding Allow the modification of whether or not we will allow BUM flooding on the vxlan bridge. To do this allow the upper level protocol to specify via the ZEBRA_VXLAN_FLOOD_CONTROL zapi message. If flooding is disabled then BUM traffic will not be forwarded to other VTEP's. Signed-off-by: Vivek Venkatraman Signed-off-by: Donald Sharp --- lib/vxlan.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/vxlan.h') diff --git a/lib/vxlan.h b/lib/vxlan.h index ba3dbb05c..bcf835453 100644 --- a/lib/vxlan.h +++ b/lib/vxlan.h @@ -26,4 +26,13 @@ typedef uint32_t vni_t; #define VNI_MAX 16777215 /* (2^24 - 1) */ +/* Flooding mechanisms for BUM packets. */ +/* Currently supported mechanisms are head-end (ingress) replication + * (which is the default) and no flooding. Future options could be + * using PIM-SM, PIM-Bidir etc. + */ +enum vxlan_flood_control { + VXLAN_FLOOD_HEAD_END_REPL = 0, + VXLAN_FLOOD_DISABLED, +}; #endif /* __VXLAN_H__ */ -- cgit v1.2.3