]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: minor style change
authoranlan_cs <vic.lan@pica8.com>
Mon, 25 Apr 2022 08:16:44 +0000 (04:16 -0400)
committeranlan_cs <vic.lan@pica8.com>
Mon, 25 Apr 2022 08:33:44 +0000 (04:33 -0400)
Correct two style places and one comment.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
bgpd/bgp_evpn.c
bgpd/bgp_evpn_mh.c

index fbb0d2272a029a56c0b1f217d0261337f34ce9b3..d29dacb994ab4d02cda758c3dd16016c7d559f04 100644 (file)
@@ -5104,7 +5104,6 @@ int bgp_nlri_parse_evpn(struct peer *peer, struct attr *attr,
 /*
  * Map the RTs (configured or automatically derived) of a VRF to the VRF.
  * The mapping will be used during route processing.
- * bgp_def: default bgp instance
  * bgp_vrf: specific bgp vrf instance on which RT is configured
  */
 void bgp_evpn_map_vrf_to_its_rts(struct bgp *bgp_vrf)
index 6db4cba44d957c33af0c1dbcaad0594c84aa73c3..39b31c0c1a7ce4665e25940b4e857ebe9a5a530c 100644 (file)
@@ -196,9 +196,8 @@ static int bgp_evpn_es_route_install(struct bgp *bgp,
 
        /* Check if route entry is already present. */
        for (pi = bgp_dest_get_bgp_path_info(dest); pi; pi = pi->next)
-               if (pi->extra
-                               && (struct bgp_path_info *)pi->extra->parent ==
-                               parent_pi)
+               if (pi->extra &&
+                   (struct bgp_path_info *)pi->extra->parent == parent_pi)
                        break;
 
        if (!pi) {
@@ -3841,13 +3840,13 @@ int bgp_evpn_remote_es_evi_del(struct bgp *bgp, struct bgpevpn *vpn,
        es = bgp_evpn_es_find(&p->prefix.ead_addr.esi);
        if (!es) {
                if (BGP_DEBUG(evpn_mh, EVPN_MH_ES))
-                       zlog_debug("del remote %s es %s evi %u vtep %pI4, NO es",
-                                  p->prefix.ead_addr.eth_tag ? "ead-es"
-                                                             : "ead-evi",
-                                  esi_to_str(&p->prefix.ead_addr.esi, buf,
-                                             sizeof(buf)),
-                                  vpn->vni,
-                          &p->prefix.ead_addr.ip.ipaddr_v4);
+                       zlog_debug(
+                               "del remote %s es %s evi %u vtep %pI4, NO es",
+                               p->prefix.ead_addr.eth_tag ? "ead-es"
+                                                          : "ead-evi",
+                               esi_to_str(&p->prefix.ead_addr.esi, buf,
+                                          sizeof(buf)),
+                               vpn->vni, &p->prefix.ead_addr.ip.ipaddr_v4);
                return 0;
        }
        es_evi = bgp_evpn_es_evi_find(es, vpn);