]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: remove unnecessary assignment 10711/head
authoranlan_cs <vic.lan@pica8.com>
Mon, 7 Feb 2022 04:53:45 +0000 (23:53 -0500)
committeranlan_cs <vic.lan@pica8.com>
Tue, 8 Mar 2022 14:58:22 +0000 (22:58 +0800)
In `zebra_evpn_neigh_gw_macip_add()`, it sets `mac->flags` to "ZEBRA_MAC_DEF_GW"
for "advertise-default-gw" mode. But this set is redundant because this "mac"
is already set by `zebra_evpn_mac_gw_macip_add()`.

So remove this redundant assignment.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
zebra/zebra_evpn_neigh.c

index f557e66384a3a6907db89e4593b6d0514581eaa6..01ac7c227fc2efb7cd6715be1c07b501ea6a2735 100644 (file)
@@ -2203,7 +2203,6 @@ int zebra_evpn_neigh_gw_macip_add(struct interface *ifp,
        /* Only advertise in BGP if the knob is enabled */
        if (advertise_gw_macip_enabled(zevpn)) {
 
-               SET_FLAG(mac->flags, ZEBRA_MAC_DEF_GW);
                SET_FLAG(n->flags, ZEBRA_NEIGH_DEF_GW);
                /* Set Router flag (R-bit) */
                if (ip->ipa_type == IPADDR_V6)