A MAC entry cannot be deleted while a neigh is referencing it. It seems
there is some race condition where this may be happening. The log is
to help identify those cases.
Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
mac->flags);
}
+ /* If the MAC is freed before the neigh we will end up
+ * with a stale pointer against the neigh
+ */
+ if (!list_isempty(mac->neigh_list))
+ zlog_warn("%s: MAC %pEA flags 0x%x neigh list not empty %d",
+ __func__, &mac->macaddr, mac->flags,
+ listcount(mac->neigh_list));
+
/* force de-ref any ES entry linked to the MAC */
zebra_evpn_es_mac_deref_entry(mac);