]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: add some neigh del not found debugs
authorStephen Worley <sworley@nvidia.com>
Tue, 9 Nov 2021 22:32:17 +0000 (17:32 -0500)
committerStephen Worley <sworley@nvidia.com>
Tue, 11 Oct 2022 20:18:21 +0000 (16:18 -0400)
Add some neigh deletion debugs for when the neigh isn't
found or there is a MAC mismatch on what was sent and found.

Signed-off-by: Stephen Worley <sworley@nvidia.com>
zebra/zebra_evpn.c
zebra/zebra_evpn_neigh.c

index e37f56f0eb07ff472066acf3365d00b28424824f..f207477445d375c2c95ed4b1099aa8cfcbebe242 100644 (file)
@@ -1528,7 +1528,7 @@ void zebra_evpn_rem_macip_del(vni_t vni, const struct ethaddr *macaddr,
 
        if (n && !mac) {
                zlog_warn(
-                       "Failed to locate MAC %pEA for neigh %pIA VNI %u upon remote MACIP DEL",
+                       "Failed to locate MAC %pEA for Neigh %pIA VNI %u upon remote MACIP DEL",
                        macaddr, ipaddr, vni);
                return;
        }
@@ -1536,8 +1536,13 @@ void zebra_evpn_rem_macip_del(vni_t vni, const struct ethaddr *macaddr,
        /* If the remote mac or neighbor doesn't exist there is nothing
         * more to do. Otherwise, uninstall the entry and then remove it.
         */
-       if (!mac && !n)
+       if (!mac && !n) {
+               if (IS_ZEBRA_DEBUG_VXLAN)
+                       zlog_debug(
+                               "Failed to locate MAC %pEA & Neigh %pIA VNI %u upon remote MACIP DEL",
+                               macaddr, ipaddr, vni);
                return;
+       }
 
        zvrf = zevpn->vxlan_if->vrf->info;
 
index 470bbdb60ba59e95e7b5bdd916fc3319d5d6f9b8..5044d2f6c24bdf0cd102a8b07c077bcadf1ea2ca 100644 (file)
@@ -2245,6 +2245,12 @@ void zebra_evpn_neigh_remote_uninstall(struct zebra_evpn *zevpn,
                        zebra_evpn_neigh_del(zevpn, n);
                        zebra_evpn_deref_ip2mac(zevpn, mac);
                }
+       } else {
+               if (IS_ZEBRA_DEBUG_VXLAN)
+                       zlog_debug(
+                               "%s: IP %pIA MAC %pEA (flags 0x%x) found doesn't match MAC %pEA, ignoring Neigh DEL",
+                               __func__, ipaddr, &n->emac, n->flags,
+                               &mac->macaddr);
        }
 }