diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-08-19 16:08:53 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-09-02 10:33:22 -0400 | 
| commit | f6371c343a25f9a6a17aff38a3d35d14ca0f6bde (patch) | |
| tree | fb1e4b91888d51c29333afaad8ec03ac5f14c3f6 /zebra/zebra_evpn_mac.h | |
| parent | c2ad0a0d40ff3860f6e48d2a8b5cb853a97f2543 (diff) | |
zebra: Convert to `struct zebra_evpn` as per our internal standard
We do not use typedef's to talk about structures as per our standard.
Fixing.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_evpn_mac.h')
| -rw-r--r-- | zebra/zebra_evpn_mac.h | 59 | 
1 files changed, 29 insertions, 30 deletions
diff --git a/zebra/zebra_evpn_mac.h b/zebra/zebra_evpn_mac.h index e90082e50b..74bb5b8536 100644 --- a/zebra/zebra_evpn_mac.h +++ b/zebra/zebra_evpn_mac.h @@ -88,7 +88,7 @@ struct zebra_mac_t_ {  	(ZEBRA_MAC_ES_PEER_PROXY | ZEBRA_MAC_ES_PEER_ACTIVE)  	/* back pointer to zevpn */ -	zebra_evpn_t *zevpn; +	struct zebra_evpn *zevpn;  	/* Local or remote info.  	 * Note: fwd_info is only relevant if mac->es is NULL. @@ -152,7 +152,7 @@ struct zebra_mac_t_ {   * Context for MAC hash walk - used by callbacks.   */  struct mac_walk_ctx { -	zebra_evpn_t *zevpn;    /* EVPN hash */ +	struct zebra_evpn *zevpn; /* EVPN hash */  	struct zebra_vrf *zvrf; /* VRF - for client notification. */  	int uninstall;		/* uninstall from kernel? */  	int upd_client;		/* uninstall from client? */ @@ -222,18 +222,18 @@ static inline bool zebra_evpn_mac_in_use(zebra_mac_t *mac)  }  struct hash *zebra_mac_db_create(const char *desc); -uint32_t num_valid_macs(zebra_evpn_t *zevi); -uint32_t num_dup_detected_macs(zebra_evpn_t *zevi); -int zebra_evpn_rem_mac_uninstall(zebra_evpn_t *zevi, zebra_mac_t *mac, +uint32_t num_valid_macs(struct zebra_evpn *zevi); +uint32_t num_dup_detected_macs(struct zebra_evpn *zevi); +int zebra_evpn_rem_mac_uninstall(struct zebra_evpn *zevi, zebra_mac_t *mac,  				 bool force); -int zebra_evpn_rem_mac_install(zebra_evpn_t *zevi, zebra_mac_t *mac, +int zebra_evpn_rem_mac_install(struct zebra_evpn *zevi, zebra_mac_t *mac,  			       bool was_static); -void zebra_evpn_deref_ip2mac(zebra_evpn_t *zevi, zebra_mac_t *mac); -zebra_mac_t *zebra_evpn_mac_lookup(zebra_evpn_t *zevi, +void zebra_evpn_deref_ip2mac(struct zebra_evpn *zevi, zebra_mac_t *mac); +zebra_mac_t *zebra_evpn_mac_lookup(struct zebra_evpn *zevi,  				   const struct ethaddr *mac); -zebra_mac_t *zebra_evpn_mac_add(zebra_evpn_t *zevi, +zebra_mac_t *zebra_evpn_mac_add(struct zebra_evpn *zevi,  				const struct ethaddr *macaddr); -int zebra_evpn_mac_del(zebra_evpn_t *zevi, zebra_mac_t *mac); +int zebra_evpn_mac_del(struct zebra_evpn *zevi, zebra_mac_t *mac);  int zebra_evpn_macip_send_msg_to_client(uint32_t id,  					const struct ethaddr *macaddr,  					const struct ipaddr *ip, uint8_t flags, @@ -247,44 +247,43 @@ int zebra_evpn_sync_mac_dp_install(zebra_mac_t *mac, bool set_inactive,  void zebra_evpn_mac_send_add_del_to_client(zebra_mac_t *mac, bool old_bgp_ready,  					   bool new_bgp_ready); -void zebra_evpn_mac_del_all(zebra_evpn_t *zevi, int uninstall, int upd_client, -			    uint32_t flags); +void zebra_evpn_mac_del_all(struct zebra_evpn *zevi, int uninstall, +			    int upd_client, uint32_t flags);  int zebra_evpn_mac_send_add_to_client(vni_t vni, const struct ethaddr *macaddr,  				      uint32_t mac_flags, uint32_t seq,  				      struct zebra_evpn_es *es);  int zebra_evpn_mac_send_del_to_client(vni_t vni, const struct ethaddr *macaddr,  				      uint32_t flags, bool force); -void zebra_evpn_send_mac_list_to_client(zebra_evpn_t *zevi); +void zebra_evpn_send_mac_list_to_client(struct zebra_evpn *zevi);  zebra_mac_t *zebra_evpn_proc_sync_mac_update( -	zebra_evpn_t *zevi, const struct ethaddr *macaddr, uint16_t ipa_len, -	const struct ipaddr *ipaddr, uint8_t flags, uint32_t seq, -	const esi_t *esi, struct sync_mac_ip_ctx *ctx); +	struct zebra_evpn *zevi, const struct ethaddr *macaddr, +	uint16_t ipa_len, const struct ipaddr *ipaddr, uint8_t flags, +	uint32_t seq, const esi_t *esi, struct sync_mac_ip_ctx *ctx);  void zebra_evpn_sync_mac_del(zebra_mac_t *mac); -void zebra_evpn_rem_mac_del(zebra_evpn_t *zevi, zebra_mac_t *mac); +void zebra_evpn_rem_mac_del(struct zebra_evpn *zevi, zebra_mac_t *mac);  void zebra_evpn_print_dad_mac_hash(struct hash_bucket *bucket, void *ctxt);  void zebra_evpn_print_dad_mac_hash_detail(struct hash_bucket *bucket,  					  void *ctxt); -int zebra_evpn_mac_remote_macip_add(zebra_evpn_t *zevpn, struct zebra_vrf *zvrf, -				    const struct ethaddr *macaddr, -				    uint16_t ipa_len, -				    const struct ipaddr *ipaddr, -				    zebra_mac_t **macp, struct in_addr vtep_ip, -				    uint8_t flags, uint32_t seq, -				    const esi_t *esi); - -int zebra_evpn_add_update_local_mac(struct zebra_vrf *zvrf, zebra_evpn_t *zevpn, +int zebra_evpn_mac_remote_macip_add( +	struct zebra_evpn *zevpn, struct zebra_vrf *zvrf, +	const struct ethaddr *macaddr, uint16_t ipa_len, +	const struct ipaddr *ipaddr, zebra_mac_t **macp, struct in_addr vtep_ip, +	uint8_t flags, uint32_t seq, const esi_t *esi); + +int zebra_evpn_add_update_local_mac(struct zebra_vrf *zvrf, +				    struct zebra_evpn *zevpn,  				    struct interface *ifp,  				    const struct ethaddr *macaddr, vlanid_t vid,  				    bool sticky, bool local_inactive,  				    bool dp_static, zebra_mac_t *mac); -int zebra_evpn_del_local_mac(zebra_evpn_t *zevpn, zebra_mac_t *mac, +int zebra_evpn_del_local_mac(struct zebra_evpn *zevpn, zebra_mac_t *mac,  			     bool clear_static); -int zebra_evpn_mac_gw_macip_add(struct interface *ifp, zebra_evpn_t *zevpn, +int zebra_evpn_mac_gw_macip_add(struct interface *ifp, struct zebra_evpn *zevpn,  				const struct ipaddr *ip, zebra_mac_t **macp,  				const struct ethaddr *macaddr, vlanid_t vlan_id,  				bool def_gw); -void zebra_evpn_mac_svi_add(struct interface *ifp, zebra_evpn_t *zevpn); -void zebra_evpn_mac_svi_del(struct interface *ifp, zebra_evpn_t *zevpn); +void zebra_evpn_mac_svi_add(struct interface *ifp, struct zebra_evpn *zevpn); +void zebra_evpn_mac_svi_del(struct interface *ifp, struct zebra_evpn *zevpn);  void zebra_evpn_mac_ifp_del(struct interface *ifp);  void zebra_evpn_mac_clear_fwd_info(zebra_mac_t *zmac);  | 
