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_neigh.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_neigh.h')
-rw-r--r-- | zebra/zebra_evpn_neigh.h | 47 |
1 files changed, 25 insertions, 22 deletions
diff --git a/zebra/zebra_evpn_neigh.h b/zebra/zebra_evpn_neigh.h index 3735a833f..e36ec98a0 100644 --- a/zebra/zebra_evpn_neigh.h +++ b/zebra/zebra_evpn_neigh.h @@ -63,7 +63,7 @@ struct zebra_neigh_t_ { /* Underlying interface. */ ifindex_t ifindex; - zebra_evpn_t *zevpn; + struct zebra_evpn *zevpn; uint32_t flags; #define ZEBRA_NEIGH_LOCAL 0x01 @@ -123,7 +123,7 @@ struct zebra_neigh_t_ { * Context for neighbor hash walk - used by callbacks. */ struct neigh_walk_ctx { - zebra_evpn_t *zevpn; /* VNI hash */ + struct zebra_evpn *zevpn; /* VNI hash */ struct zebra_vrf *zvrf; /* VRF - for client notification. */ int uninstall; /* uninstall from kernel? */ int upd_client; /* uninstall from client? */ @@ -211,10 +211,10 @@ int remote_neigh_count(zebra_mac_t *zmac); int neigh_list_cmp(void *p1, void *p2); struct hash *zebra_neigh_db_create(const char *desc); -uint32_t num_dup_detected_neighs(zebra_evpn_t *zevpn); +uint32_t num_dup_detected_neighs(struct zebra_evpn *zevpn); void zebra_evpn_find_neigh_addr_width(struct hash_bucket *bucket, void *ctxt); int remote_neigh_count(zebra_mac_t *zmac); -int zebra_evpn_rem_neigh_install(zebra_evpn_t *zevpn, zebra_neigh_t *n, +int zebra_evpn_rem_neigh_install(struct zebra_evpn *zevpn, zebra_neigh_t *n, bool was_static); void zebra_evpn_install_neigh_hash(struct hash_bucket *bucket, void *ctxt); int zebra_evpn_neigh_send_add_to_client(vni_t vni, const struct ipaddr *ip, @@ -224,42 +224,44 @@ int zebra_evpn_neigh_send_add_to_client(vni_t vni, const struct ipaddr *ip, int zebra_evpn_neigh_send_del_to_client(vni_t vni, struct ipaddr *ip, struct ethaddr *macaddr, uint32_t flags, int state, bool force); -bool zebra_evpn_neigh_is_bgp_seq_ok(zebra_evpn_t *zevpn, zebra_neigh_t *n, +bool zebra_evpn_neigh_is_bgp_seq_ok(struct zebra_evpn *zevpn, zebra_neigh_t *n, const struct ethaddr *macaddr, uint32_t seq, bool sync); -int zebra_evpn_neigh_del(zebra_evpn_t *zevpn, zebra_neigh_t *n); +int zebra_evpn_neigh_del(struct zebra_evpn *zevpn, zebra_neigh_t *n); void zebra_evpn_sync_neigh_del(zebra_neigh_t *n); zebra_neigh_t * -zebra_evpn_proc_sync_neigh_update(zebra_evpn_t *zevpn, zebra_neigh_t *n, +zebra_evpn_proc_sync_neigh_update(struct zebra_evpn *zevpn, zebra_neigh_t *n, 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_neigh_del_all(zebra_evpn_t *zevpn, int uninstall, +void zebra_evpn_neigh_del_all(struct zebra_evpn *zevpn, int uninstall, int upd_client, uint32_t flags); -zebra_neigh_t *zebra_evpn_neigh_lookup(zebra_evpn_t *zevpn, +zebra_neigh_t *zebra_evpn_neigh_lookup(struct zebra_evpn *zevpn, const struct ipaddr *ip); -int zebra_evpn_rem_neigh_install(zebra_evpn_t *zevpn, zebra_neigh_t *n, +int zebra_evpn_rem_neigh_install(struct zebra_evpn *zevpn, zebra_neigh_t *n, bool was_static); -void zebra_evpn_process_neigh_on_remote_mac_add(zebra_evpn_t *zevpn, +void zebra_evpn_process_neigh_on_remote_mac_add(struct zebra_evpn *zevpn, zebra_mac_t *zmac); -void zebra_evpn_process_neigh_on_local_mac_del(zebra_evpn_t *zevpn, +void zebra_evpn_process_neigh_on_local_mac_del(struct zebra_evpn *zevpn, zebra_mac_t *zmac); -void zebra_evpn_process_neigh_on_local_mac_change(zebra_evpn_t *zevpn, +void zebra_evpn_process_neigh_on_local_mac_change(struct zebra_evpn *zevpn, zebra_mac_t *zmac, bool seq_change, bool es_change); -void zebra_evpn_process_neigh_on_remote_mac_del(zebra_evpn_t *zevpn, +void zebra_evpn_process_neigh_on_remote_mac_del(struct zebra_evpn *zevpn, zebra_mac_t *zmac); -int zebra_evpn_local_neigh_update(zebra_evpn_t *zevpn, struct interface *ifp, +int zebra_evpn_local_neigh_update(struct zebra_evpn *zevpn, + struct interface *ifp, const struct ipaddr *ip, const struct ethaddr *macaddr, bool is_router, bool local_inactive, bool dp_static); -int zebra_evpn_remote_neigh_update(zebra_evpn_t *zevpn, struct interface *ifp, +int zebra_evpn_remote_neigh_update(struct zebra_evpn *zevpn, + struct interface *ifp, const struct ipaddr *ip, const struct ethaddr *macaddr, uint16_t state); -void zebra_evpn_send_neigh_to_client(zebra_evpn_t *zevpn); +void zebra_evpn_send_neigh_to_client(struct zebra_evpn *zevpn); void zebra_evpn_clear_dup_neigh_hash(struct hash_bucket *bucket, void *ctxt); void zebra_evpn_print_neigh(zebra_neigh_t *n, void *ctxt, json_object *json); void zebra_evpn_print_neigh_hash(struct hash_bucket *bucket, void *ctxt); @@ -268,18 +270,19 @@ void zebra_evpn_print_neigh_hash_detail(struct hash_bucket *bucket, void *ctxt); void zebra_evpn_print_dad_neigh_hash(struct hash_bucket *bucket, void *ctxt); void zebra_evpn_print_dad_neigh_hash_detail(struct hash_bucket *bucket, void *ctxt); -void zebra_evpn_neigh_remote_macip_add(zebra_evpn_t *zevpn, +void zebra_evpn_neigh_remote_macip_add(struct zebra_evpn *zevpn, struct zebra_vrf *zvrf, const struct ipaddr *ipaddr, zebra_mac_t *mac, struct in_addr vtep_ip, uint8_t flags, uint32_t seq); -int zebra_evpn_neigh_gw_macip_add(struct interface *ifp, zebra_evpn_t *zevpn, - struct ipaddr *ip, zebra_mac_t *mac); -void zebra_evpn_neigh_remote_uninstall(zebra_evpn_t *zevpn, +int zebra_evpn_neigh_gw_macip_add(struct interface *ifp, + struct zebra_evpn *zevpn, struct ipaddr *ip, + zebra_mac_t *mac); +void zebra_evpn_neigh_remote_uninstall(struct zebra_evpn *zevpn, struct zebra_vrf *zvrf, zebra_neigh_t *n, zebra_mac_t *mac, const struct ipaddr *ipaddr); -int zebra_evpn_neigh_del_ip(zebra_evpn_t *zevpn, const struct ipaddr *ip); +int zebra_evpn_neigh_del_ip(struct zebra_evpn *zevpn, const struct ipaddr *ip); #ifdef __cplusplus |