summaryrefslogtreecommitdiff
path: root/zebra/zebra_vxlan_private.h
diff options
context:
space:
mode:
authorPat Ruddy <pat@voltanet.io>2020-07-23 14:51:10 -0700
committerPat Ruddy <pat@voltanet.io>2020-08-12 12:39:33 +0100
commit87d76d540337d191f3a708ad56014742ece7c2cc (patch)
tree3ae435cbde8fb110bfeea52035a38d370394aff7 /zebra/zebra_vxlan_private.h
parent2d706c4e250fcb84401b6d4904c7c68e446a53cb (diff)
zebra: rename vni to evpn where appropriate
The main zebra_vni_t hash structure has been renamed to zebra_evpn_t to allow for other transport underlays. Rename functions and variables to reflect this change. Signed-off-by: Pat Ruddy <pat@voltanet.io>
Diffstat (limited to 'zebra/zebra_vxlan_private.h')
-rw-r--r--zebra/zebra_vxlan_private.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/zebra/zebra_vxlan_private.h b/zebra/zebra_vxlan_private.h
index e2eae56873..0a4b34d425 100644
--- a/zebra/zebra_vxlan_private.h
+++ b/zebra/zebra_vxlan_private.h
@@ -37,7 +37,7 @@ extern "C" {
#define ERR_STR_SZ 256
/* definitions */
-typedef struct zebra_vni_t_ zebra_vni_t;
+typedef struct zebra_evpn_t_ zebra_evpn_t;
typedef struct zebra_vtep_t_ zebra_vtep_t;
typedef struct zebra_mac_t_ zebra_mac_t;
typedef struct zebra_neigh_t_ zebra_neigh_t;
@@ -72,13 +72,13 @@ RB_PROTOTYPE(zebra_es_evi_rb_head, zebra_evpn_es_evi, rb_node,
* Contains information pertaining to a VNI:
* - the list of remote VTEPs (with this VNI)
*/
-struct zebra_vni_t_ {
+struct zebra_evpn_t_ {
/* VNI - key */
vni_t vni;
/* ES flags */
uint32_t flags;
-#define ZVNI_READY_FOR_BGP (1 << 0) /* ready to be sent to BGP */
+#define ZEVPN_READY_FOR_BGP (1 << 0) /* ready to be sent to BGP */
/* Flag for advertising gw macip */
uint8_t advertise_gw_macip;
@@ -333,8 +333,8 @@ struct zebra_mac_t_ {
#define ZEBRA_MAC_ALL_PEER_FLAGS (ZEBRA_MAC_ES_PEER_PROXY |\
ZEBRA_MAC_ES_PEER_ACTIVE)
- /* back pointer to zvni */
- zebra_vni_t *zvni;
+ /* back pointer to zevpn */
+ zebra_evpn_t *zevpn;
/* Local or remote info. */
union {
@@ -383,7 +383,7 @@ struct zebra_mac_t_ {
* Context for MAC hash walk - used by callbacks.
*/
struct mac_walk_ctx {
- zebra_vni_t *zvni; /* VNI hash */
+ zebra_evpn_t *zevpn; /* EVPN hash */
struct zebra_vrf *zvrf; /* VRF - for client notification. */
int uninstall; /* uninstall from kernel? */
int upd_client; /* uninstall from client? */
@@ -451,7 +451,7 @@ struct zebra_neigh_t_ {
/* Underlying interface. */
ifindex_t ifindex;
- zebra_vni_t *zvni;
+ zebra_evpn_t *zevpn;
uint32_t flags;
#define ZEBRA_NEIGH_LOCAL 0x01
@@ -509,7 +509,7 @@ struct zebra_neigh_t_ {
* Context for neighbor hash walk - used by callbacks.
*/
struct neigh_walk_ctx {
- zebra_vni_t *zvni; /* VNI hash */
+ zebra_evpn_t *zevpn; /* VNI hash */
struct zebra_vrf *zvrf; /* VRF - for client notification. */
int uninstall; /* uninstall from kernel? */
int upd_client; /* uninstall from client? */
@@ -532,7 +532,7 @@ struct neigh_walk_ctx {
/* context for neigh hash walk - update l3vni and rmac */
struct neigh_l3info_walk_ctx {
- zebra_vni_t *zvni;
+ zebra_evpn_t *zevpn;
zebra_l3vni_t *zl3vni;
int add;
};
@@ -579,7 +579,7 @@ typedef struct zebra_vxlan_sg_ {
uint32_t ref_cnt;
} zebra_vxlan_sg_t;
-extern zebra_vni_t *zvni_lookup(vni_t vni);
+extern zebra_evpn_t *zevpn_lookup(vni_t vni);
extern void zebra_vxlan_sync_mac_dp_install(zebra_mac_t *mac, bool set_inactive,
bool force_clear_static, const char *caller);