diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-26 19:11:58 -0400 | 
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2020-06-23 17:32:52 +0200 | 
| commit | 9bcb3eef541180a17341d1d4510586efc35711db (patch) | |
| tree | 686e6d7721a180a168cb3353e2c900b63069e6c3 /bgpd/bgp_evpn.h | |
| parent | 6d7824f29c4aad88009ac1dfe0491de31c01fcb3 (diff) | |
bgp: rename bgp_node to bgp_dest
This is the bulk part extracted from "bgpd: Convert from `struct
bgp_node` to `struct bgp_dest`".  It should not result in any functional
change.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_evpn.h')
| -rw-r--r-- | bgpd/bgp_evpn.h | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/bgpd/bgp_evpn.h b/bgpd/bgp_evpn.h index a48a707b94..267c87ee54 100644 --- a/bgpd/bgp_evpn.h +++ b/bgpd/bgp_evpn.h @@ -81,7 +81,7 @@ static inline int is_route_parent_evpn(struct bgp_path_info *ri)  {  	struct bgp_path_info *parent_ri;  	struct bgp_table *table; -	struct bgp_node *rn; +	struct bgp_dest *dest;  	/* If not imported (or doesn't have a parent), bail. */  	if (ri->sub_type != BGP_ROUTE_IMPORTED || @@ -96,10 +96,10 @@ static inline int is_route_parent_evpn(struct bgp_path_info *ri)  		;  	/* See if of family L2VPN/EVPN */ -	rn = parent_ri->net; -	if (!rn) +	dest = parent_ri->net; +	if (!dest)  		return 0; -	table = bgp_node_table(rn); +	table = bgp_dest_table(dest);  	if (table &&  	    table->afi == AFI_L2VPN &&  	    table->safi == SAFI_EVPN) @@ -120,7 +120,7 @@ static inline bool is_route_injectable_into_evpn(struct bgp_path_info *pi)  {  	struct bgp_path_info *parent_pi;  	struct bgp_table *table; -	struct bgp_node *rn; +	struct bgp_dest *dest;  	if (pi->sub_type != BGP_ROUTE_IMPORTED ||  	    !pi->extra || @@ -128,10 +128,10 @@ static inline bool is_route_injectable_into_evpn(struct bgp_path_info *pi)  		return true;  	parent_pi = (struct bgp_path_info *)pi->extra->parent; -	rn = parent_pi->net; -	if (!rn) +	dest = parent_pi->net; +	if (!dest)  		return true; -	table = bgp_node_table(rn); +	table = bgp_dest_table(dest);  	if (table &&  	    table->afi == AFI_L2VPN &&  	    table->safi == SAFI_EVPN)  | 
