]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: give some evpn apis better names
authorMark Stapp <mjs@voltanet.io>
Fri, 16 Apr 2021 16:17:11 +0000 (12:17 -0400)
committerMark Stapp <mjs.ietf@gmail.com>
Mon, 19 Jul 2021 12:43:48 +0000 (08:43 -0400)
Use more useful names for a few evpn apis.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
zebra/zebra_evpn.c
zebra/zebra_evpn.h
zebra/zebra_evpn_mac.c
zebra/zebra_evpn_mac.h
zebra/zebra_evpn_neigh.c
zebra/zebra_evpn_neigh.h
zebra/zebra_vxlan.c

index 816f46bac91c12feae1c2960cbe42994ce3bea1c..8e73e86139eeef0fa8f7b11749dcbb6f23f5592d 100644 (file)
@@ -1380,7 +1380,7 @@ zebra_evpn_process_sync_macip_add(zebra_evpn_t *zevpn, struct ethaddr *macaddr,
 
 /************************** remote mac-ip handling **************************/
 /* Process a remote MACIP add from BGP. */
-void process_remote_macip_add(vni_t vni, struct ethaddr *macaddr,
+void zebra_evpn_rem_macip_add(vni_t vni, struct ethaddr *macaddr,
                              uint16_t ipa_len, struct ipaddr *ipaddr,
                              uint8_t flags, uint32_t seq,
                              struct in_addr vtep_ip, esi_t *esi)
@@ -1447,17 +1447,18 @@ void process_remote_macip_add(vni_t vni, struct ethaddr *macaddr,
                return;
 
 
-       if (process_mac_remote_macip_add(zevpn, zvrf, macaddr, ipa_len, ipaddr,
-                                        &mac, vtep_ip, flags, seq, esi)
+       if (zebra_evpn_mac_remote_macip_add(zevpn, zvrf, macaddr, ipa_len,
+                                           ipaddr, &mac, vtep_ip, flags, seq,
+                                           esi)
            != 0)
                return;
 
-       process_neigh_remote_macip_add(zevpn, zvrf, ipaddr, mac, vtep_ip, flags,
-                                      seq);
+       zebra_evpn_neigh_remote_macip_add(zevpn, zvrf, ipaddr, mac, vtep_ip,
+                                         flags, seq);
 }
 
 /* Process a remote MACIP delete from BGP. */
-void process_remote_macip_del(vni_t vni, struct ethaddr *macaddr,
+void zebra_evpn_rem_macip_del(vni_t vni, struct ethaddr *macaddr,
                              uint16_t ipa_len, struct ipaddr *ipaddr,
                              struct in_addr vtep_ip)
 {
index ee9e1406e40cb97771b9d88645fe007647a0e9de..f7837d09a8d69fa249cdb6c04b7f54bc021ad39a 100644 (file)
@@ -204,11 +204,11 @@ int zebra_evpn_vtep_uninstall(zebra_evpn_t *zevpn, struct in_addr *vtep_ip);
 void zebra_evpn_handle_flooding_remote_vteps(struct hash_bucket *bucket,
                                             void *zvrf);
 void zebra_evpn_cleanup_all(struct hash_bucket *bucket, void *arg);
-void process_remote_macip_add(vni_t vni, struct ethaddr *macaddr,
+void zebra_evpn_rem_macip_add(vni_t vni, struct ethaddr *macaddr,
                              uint16_t ipa_len, struct ipaddr *ipaddr,
                              uint8_t flags, uint32_t seq,
                              struct in_addr vtep_ip, esi_t *esi);
-void process_remote_macip_del(vni_t vni, struct ethaddr *macaddr,
+void zebra_evpn_rem_macip_del(vni_t vni, struct ethaddr *macaddr,
                              uint16_t ipa_len, struct ipaddr *ipaddr,
                              struct in_addr vtep_ip);
 void zebra_evpn_cfg_cleanup(struct hash_bucket *bucket, void *ctxt);
index fe3167dc29b4f5cb6243cb3d8c827c2e629ca289..26694245f1bb58c6e482561dd0a1f81c60162d6b 100644 (file)
@@ -1958,11 +1958,11 @@ void zebra_evpn_print_dad_mac_hash_detail(struct hash_bucket *bucket,
                zebra_evpn_print_mac_hash_detail(bucket, ctxt);
 }
 
-int process_mac_remote_macip_add(zebra_evpn_t *zevpn, struct zebra_vrf *zvrf,
-                                struct ethaddr *macaddr, uint16_t ipa_len,
-                                struct ipaddr *ipaddr, zebra_mac_t **macp,
-                                struct in_addr vtep_ip, uint8_t flags,
-                                uint32_t seq, esi_t *esi)
+int zebra_evpn_mac_remote_macip_add(zebra_evpn_t *zevpn, struct zebra_vrf *zvrf,
+                                   struct ethaddr *macaddr, uint16_t ipa_len,
+                                   struct ipaddr *ipaddr, zebra_mac_t **macp,
+                                   struct in_addr vtep_ip, uint8_t flags,
+                                   uint32_t seq, esi_t *esi)
 {
        char buf1[INET6_ADDRSTRLEN];
        bool sticky;
index fb162f1a93da524c80653b678570f5738b22d693..5d17e283ae79c9f28b6ead51fcdd1208d6320b76 100644 (file)
@@ -262,11 +262,11 @@ void zebra_evpn_rem_mac_del(zebra_evpn_t *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 process_mac_remote_macip_add(zebra_evpn_t *zevpn, struct zebra_vrf *zvrf,
-                                struct ethaddr *macaddr, uint16_t ipa_len,
-                                struct ipaddr *ipaddr, zebra_mac_t **macp,
-                                struct in_addr vtep_ip, uint8_t flags,
-                                uint32_t seq, esi_t *esi);
+int zebra_evpn_mac_remote_macip_add(zebra_evpn_t *zevpn, struct zebra_vrf *zvrf,
+                                   struct ethaddr *macaddr, uint16_t ipa_len,
+                                   struct ipaddr *ipaddr, zebra_mac_t **macp,
+                                   struct in_addr vtep_ip, uint8_t flags,
+                                   uint32_t seq, esi_t *esi);
 
 int zebra_evpn_add_update_local_mac(struct zebra_vrf *zvrf, zebra_evpn_t *zevpn,
                                    struct interface *ifp,
index 4c7a1542fc174540c5fca4778ce12d2fa0f27a54..a78bac010c12086155e104f46fabdbb2f3b08345 100644 (file)
@@ -2046,10 +2046,11 @@ void zebra_evpn_print_dad_neigh_hash_detail(struct hash_bucket *bucket,
                zebra_evpn_print_neigh_hash_detail(bucket, ctxt);
 }
 
-void process_neigh_remote_macip_add(zebra_evpn_t *zevpn, struct zebra_vrf *zvrf,
-                                   struct ipaddr *ipaddr, zebra_mac_t *mac,
-                                   struct in_addr vtep_ip, uint8_t flags,
-                                   uint32_t seq)
+void zebra_evpn_neigh_remote_macip_add(zebra_evpn_t *zevpn,
+                                      struct zebra_vrf *zvrf,
+                                      struct ipaddr *ipaddr, zebra_mac_t *mac,
+                                      struct in_addr vtep_ip, uint8_t flags,
+                                      uint32_t seq)
 {
        zebra_neigh_t *n;
        int update_neigh = 0;
index 05156c1255795e4adf673cfa232dba764cd32a51..fdfe6dc1d01386be23a3f9fb7632571b65de68e5 100644 (file)
@@ -266,10 +266,11 @@ 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 process_neigh_remote_macip_add(zebra_evpn_t *zevpn, struct zebra_vrf *zvrf,
-                                   struct ipaddr *ipaddr, zebra_mac_t *mac,
-                                   struct in_addr vtep_ip, uint8_t flags,
-                                   uint32_t seq);
+void zebra_evpn_neigh_remote_macip_add(zebra_evpn_t *zevpn,
+                                      struct zebra_vrf *zvrf,
+                                      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,
index 2f3ea7475a008b49ca536b81c325a4c42d7809b0..b434433e1758e502c28084cdcf1885c038d82292 100644 (file)
@@ -3844,7 +3844,7 @@ void zebra_vxlan_remote_macip_del(ZAPI_HANDLER_ARGS)
                                ipaddr2str(&ip, buf1, sizeof(buf1)) : "",
                                &vtep_ip, zebra_route_string(client->proto));
 
-               process_remote_macip_del(vni, &macaddr, ipa_len, &ip, vtep_ip);
+               zebra_evpn_rem_macip_del(vni, &macaddr, ipa_len, &ip, vtep_ip);
        }
 
 stream_failure:
@@ -3907,7 +3907,7 @@ void zebra_vxlan_remote_macip_add(ZAPI_HANDLER_ARGS)
                                zebra_route_string(client->proto));
                }
 
-               process_remote_macip_add(vni, &macaddr, ipa_len, &ip,
+               zebra_evpn_rem_macip_add(vni, &macaddr, ipa_len, &ip,
                                         flags, seq, vtep_ip, &esi);
        }