diff options
author | Donald Sharp <sharpd@nvidia.com> | 2021-08-19 22:08:53 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2021-09-02 16:33:22 +0200 |
commit | f6371c343a25f9a6a17aff38a3d35d14ca0f6bde (patch) | |
tree | fb1e4b91888d51c29333afaad8ec03ac5f14c3f6 /zebra/zebra_evpn_mh.h | |
parent | Merge pull request #9106 from opensourcerouting/clippy-elf-bsd-cond (diff) | |
download | frr-f6371c343a25f9a6a17aff38a3d35d14ca0f6bde.tar.xz frr-f6371c343a25f9a6a17aff38a3d35d14ca0f6bde.zip |
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_mh.h')
-rw-r--r-- | zebra/zebra_evpn_mh.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/zebra/zebra_evpn_mh.h b/zebra/zebra_evpn_mh.h index cba536ea8..5b2d39275 100644 --- a/zebra/zebra_evpn_mh.h +++ b/zebra/zebra_evpn_mh.h @@ -113,7 +113,7 @@ RB_PROTOTYPE(zebra_es_rb_head, zebra_evpn_es, rb_node, zebra_es_rb_cmp); */ struct zebra_evpn_es_evi { struct zebra_evpn_es *es; - zebra_evpn_t *zevpn; + struct zebra_evpn *zevpn; /* ES-EVI flags */ uint32_t flags; @@ -183,7 +183,7 @@ struct zebra_evpn_access_bd { /* list of members associated with the BD i.e. (potential) ESs */ struct list *mbr_zifs; /* presence of zevpn activates the EVI on all the ESs in mbr_zifs */ - zebra_evpn_t *zevpn; + struct zebra_evpn *zevpn; /* SVI associated with the VLAN */ struct zebra_if *vlan_zif; }; @@ -224,7 +224,7 @@ struct zebra_evpn_mh_info { * XXX: once single vxlan device model becomes available this will * not be necessary */ - zebra_evpn_t *es_base_evpn; + struct zebra_evpn *es_base_evpn; struct in_addr es_originator_ip; /* L2 NH and NHG ids - @@ -267,7 +267,7 @@ struct zebra_evpn_mh_info { }; /* returns TRUE if the EVPN is ready to be sent to BGP */ -static inline bool zebra_evpn_send_to_client_ok(zebra_evpn_t *zevpn) +static inline bool zebra_evpn_send_to_client_ok(struct zebra_evpn *zevpn) { return !!(zevpn->flags & ZEVPN_READY_FOR_BGP); } @@ -313,12 +313,12 @@ extern void zebra_evpn_mh_terminate(void); extern bool zebra_evpn_is_if_es_capable(struct zebra_if *zif); extern void zebra_evpn_if_init(struct zebra_if *zif); extern void zebra_evpn_if_cleanup(struct zebra_if *zif); -extern void zebra_evpn_es_evi_init(zebra_evpn_t *zevpn); -extern void zebra_evpn_es_evi_cleanup(zebra_evpn_t *zevpn); -extern void zebra_evpn_vxl_evpn_set(struct zebra_if *zif, zebra_evpn_t *zevpn, - bool set); -extern void zebra_evpn_es_set_base_evpn(zebra_evpn_t *zevpn); -extern void zebra_evpn_es_clear_base_evpn(zebra_evpn_t *zevpn); +extern void zebra_evpn_es_evi_init(struct zebra_evpn *zevpn); +extern void zebra_evpn_es_evi_cleanup(struct zebra_evpn *zevpn); +extern void zebra_evpn_vxl_evpn_set(struct zebra_if *zif, + struct zebra_evpn *zevpn, bool set); +extern void zebra_evpn_es_set_base_evpn(struct zebra_evpn *zevpn); +extern void zebra_evpn_es_clear_base_evpn(struct zebra_evpn *zevpn); extern void zebra_evpn_vl_vxl_ref(uint16_t vid, struct zebra_if *vxlan_zif); extern void zebra_evpn_vl_vxl_deref(uint16_t vid, struct zebra_if *vxlan_zif); extern void zebra_evpn_vl_mbr_ref(uint16_t vid, struct zebra_if *zif); @@ -328,7 +328,7 @@ extern void zebra_evpn_es_if_oper_state_change(struct zebra_if *zif, bool up); extern void zebra_evpn_es_show(struct vty *vty, bool uj); extern void zebra_evpn_es_show_detail(struct vty *vty, bool uj); extern void zebra_evpn_es_show_esi(struct vty *vty, bool uj, esi_t *esi); -extern void zebra_evpn_update_all_es(zebra_evpn_t *zevpn); +extern void zebra_evpn_update_all_es(struct zebra_evpn *zevpn); extern void zebra_evpn_proc_remote_es(ZAPI_HANDLER_ARGS); int zebra_evpn_remote_es_add(const esi_t *esi, struct in_addr vtep_ip, bool esr_rxed, uint8_t df_alg, uint16_t df_pref); |