Skip to content

Conversation

krishna-samy
Copy link
Contributor

Issue:
During FRR restart, we fail to add some of the local interface's MAC to the 'bgp mac hash'. Not having local MAC in the hash table can cause lookup issues while receiving EVPN RT-2.

Currently, we have code to add local MAC(bgp_mac_add_mac_entry) while handling interface add/up events in BGP(bgp_ifp_up/bgp_ifp_create). But the code 'bgp_mac_add_mac_entry' in bgp_ifp_create is not getting invoked as it is placed under a specific check(vrf->bgp link check).

Fix:
We can skip this check 'vrf->bgp link existence' as the tenant VRF might not have BGP instance but still we want to cache the tenant VRF local MACs. So keeping this check in bgp_ifp_create inline with bgp_ifp_up.

Ticket: #4204154

Issue:
During FRR restart, we fail to add some of the local interface's MAC
to the 'bgp mac hash'. Not having local MAC in the hash table can cause
lookup issues while receiving EVPN RT-2.

Currently, we have code to add local MAC(bgp_mac_add_mac_entry) while handling
interface add/up events in BGP(bgp_ifp_up/bgp_ifp_create). But the code
'bgp_mac_add_mac_entry' in bgp_ifp_create is not getting invoked as it
is placed under a specific check(vrf->bgp link check).

Fix:
We can skip this check 'vrf->bgp link existence' as the tenant VRF might
not have BGP instance but still we want to cache the tenant VRF local
MACs. So keeping this check in bgp_ifp_create inline with bgp_ifp_up.

Ticket: #4204154

Signed-off-by: Krishnasamy R <krishnasamyr@nvidia.com>
@ton31337
Copy link
Member

@Mergifyio backport stable/10.2 stable/10.1 stable/10.0

Copy link

mergify bot commented Jan 21, 2025

backport stable/10.2 stable/10.1 stable/10.0

✅ Backports have been created

Copy link
Member

@ton31337 ton31337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ton31337 ton31337 merged commit 97b7875 into FRRouting:master Jan 21, 2025
13 checks passed
ton31337 added a commit that referenced this pull request Jan 21, 2025
bgpd: Fix for local interface MAC cache issue in 'bgp mac hash' table (backport #17888)
ton31337 added a commit that referenced this pull request Jan 22, 2025
bgpd: Fix for local interface MAC cache issue in 'bgp mac hash' table (backport #17888)
ton31337 added a commit that referenced this pull request Jan 22, 2025
bgpd: Fix for local interface MAC cache issue in 'bgp mac hash' table (backport #17888)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants