From 62429d845e2c513665c2e1461b7ddbbcfc3938c4 Mon Sep 17 00:00:00 2001 From: Anuradha Karuppiah Date: Fri, 22 Mar 2019 10:10:28 -0700 Subject: [PATCH] pimd: vxlan definitions for creation origination and terminatiom mroutes pim vxlan component will create upstream entries and OIFs for multicast VxLAN tunnel origination and termination in single-VTEP and anycast-VTEP (MLAG) setups. Signed-off-by: Anuradha Karuppiah --- pimd/pim_vxlan.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/pimd/pim_vxlan.h b/pimd/pim_vxlan.h index 5ad6c7d4da..4725d96264 100644 --- a/pimd/pim_vxlan.h +++ b/pimd/pim_vxlan.h @@ -22,12 +22,36 @@ #ifndef PIM_VXLAN_H #define PIM_VXLAN_H +enum pim_vxlan_sg_flags { + PIM_VXLAN_SGF_NONE = 0, + PIM_VXLAN_SGF_DEL_IN_PROG = (1 << 0), + PIM_VXLAN_SGF_OIF_INSTALLED = (1 << 1) +}; + struct pim_vxlan_sg { struct pim_instance *pim; /* key */ struct prefix_sg sg; char sg_str[PIM_SG_LEN]; + + enum pim_vxlan_sg_flags flags; + struct pim_upstream *up; + + /* termination info (only applicable to termination XG mroutes) + * term_if - termination device ipmr-lo is added to the OIL + * as local/IGMP membership to allow termination of vxlan traffic + */ + struct interface *term_oif; + + /* origination info + * iif - lo/vrf or peerlink (on MLAG setups) + * peerlink_oif - added to the OIL to send encapsulated BUM traffic to + * the MLAG peer switch + */ + struct interface *iif; + /* on a MLAG setup the peerlink is added as a static OIF */ + struct interface *orig_oif; }; extern struct pim_vxlan_sg *pim_vxlan_sg_find(struct pim_instance *pim, -- 2.39.5