Skip to content

Commit

Permalink
zebra: Fix to not cleanup local cache VNI on flap
Browse files Browse the repository at this point in the history
Ticket: RM_3022755
Testing Done: UT

Changes:

As part of 3006223 we had made a change the del local cache
on zebra_evpn_mac_del this caused the local mac cache to be deleted
on VNI down.
This was not required as are cleaning up on RTMNEIGH_DEL when MAC gets
deleted from kernel.
Hence reverted that change and tested both VNI flap and MAC age out.
  • Loading branch information
ashred-lnx authored and donaldsharp committed Dec 7, 2024
1 parent 25cadf7 commit 30f521c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions zebra/zebra_evpn_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,6 @@ struct zebra_mac *zebra_evpn_mac_add(struct zebra_evpn *zevpn,
int zebra_evpn_mac_del(struct zebra_evpn *zevpn, struct zebra_mac *mac)
{
struct zebra_mac *tmp_mac;
struct zebra_l2_brvlan_mac *bmac;

if (IS_ZEBRA_DEBUG_VXLAN || IS_ZEBRA_DEBUG_EVPN_MH_MAC) {
char mac_buf[MAC_BUF_SIZE];
Expand All @@ -1141,12 +1140,6 @@ int zebra_evpn_mac_del(struct zebra_evpn *zevpn, struct zebra_mac *mac)
zebra_evpn_zebra_mac_flag_dump(mac, mac_buf,
sizeof(mac_buf)));
}

/* clean up from the local mac db */
bmac = zebra_l2_brvlan_mac_find(zevpn->bridge_if, zevpn->vid,
&mac->macaddr);
if (bmac)
zebra_l2_brvlan_mac_del(zevpn->bridge_if, bmac);
/* force de-ref any ES entry linked to the MAC */
zebra_evpn_es_mac_deref_entry(mac);

Expand Down

0 comments on commit 30f521c

Please sign in to comment.