Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EVPN]Fixing race condition when EVPN NVO add arrives late #2756

Merged
merged 1 commit into from
May 4, 2023

Conversation

dgsudharsan
Copy link
Collaborator

@dgsudharsan dgsudharsan commented May 1, 2023

Fixes sonic-net/sonic-buildimage#14949

What I did
Sometime during config reload, EVPN NVO table arrives later than remote VNI table entries. In such scenarios, remote vni entries are ignored and this leads to traffic loss. Added fix to retry instead of ignoring.

2023-04-30.14:23:40.528130|VXLAN_TUNNEL_MAP_TABLE:vtep1:map_98_Vlan98|SET|vlan:Vlan98|vni:98
2023-04-30.14:23:40.559594|VXLAN_TUNNEL_MAP_TABLE:vtep1:map_99_Vlan99|SET|vlan:Vlan99|vni:99
2023-04-30.14:23:40.572133|VXLAN_REMOTE_VNI_TABLE:Vlan98:1.1.1.1|SET|vni:98
2023-04-30.14:23:40.572180|VXLAN_REMOTE_VNI_TABLE:Vlan98:1.1.1.2|SET|vni:98
2023-04-30.14:23:40.575208|VXLAN_FDB_TABLE:Vlan98:04:3f:72:f7:2d:52|SET|remote_vtep:1.1.1.2|type:dynamic|vni:98
2023-04-30.14:23:40.575240|VXLAN_FDB_TABLE:Vlan98:0c:42:a1:6d:5b:94|SET|remote_vtep:1.1.1.1|type:dynamic|vni:98
2023-04-30.14:23:40.575249|VXLAN_FDB_TABLE:Vlan98:1c:34:da:2c:be:00|SET|remote_vtep:1.1.1.1|type:dynamic|vni:98
2023-04-30.14:23:40.575257|VXLAN_FDB_TABLE:Vlan98:1c:34:da:2c:ca:00|SET|remote_vtep:1.1.1.2|type:dynamic|vni:98
2023-04-30.14:23:40.589995|VXLAN_EVPN_NVO_TABLE:nvo1|SET|source_vtep:vtep1

Why I did it
To fix race condition as stated in the description

How I verified it
Added UT to verify.

Details if related

@dgsudharsan dgsudharsan changed the title [EVPN]Fixing race condition when EVPN NVO add comes late [EVPN]Fixing race condition when EVPN NVO add arrives late May 2, 2023
@adyeung
Copy link

adyeung commented May 2, 2023

@srj102 pls help review the change on behalf of BRCM

@moshemos
Copy link

moshemos commented May 3, 2023

@qiluo-msft can you help merge this for both master and 202211?

@prsunny
Copy link
Collaborator

prsunny commented May 3, 2023

@qiluo-msft can you help merge this for both master and 202211?

@moshemos , we are waiting for signoff from @srj102 before merge.

@prsunny prsunny merged commit 750e064 into sonic-net:master May 4, 2023
dgsudharsan added a commit to dgsudharsan/sonic-swss that referenced this pull request May 10, 2023
prsunny pushed a commit that referenced this pull request May 11, 2023
…)" (#2773)

This reverts commit 750e064.
Reverts the PR #2756

The fix added breaks the previously added workaround #2626. Hence requesting to revert the fix.
Once we find a proper solution for sonic-net/sonic-buildimage#12361 we need to reintegrate this PR
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.

[EVPN]When EVPN NVO config arrives later than remote VNI entries, the remote entries don't get added
7 participants