Skip to content

[tests/vxlan]: Configure sport as part of vxlan switch configuration - #1364

Open
Aakash Tiwari (aakashtiwari2630-max) wants to merge 1 commit into
Azure:202511_azdfrom
aakashtiwari2630-max:aaktiwar/vxlan_sport
Open

[tests/vxlan]: Configure sport as part of vxlan switch configuration#1364
Aakash Tiwari (aakashtiwari2630-max) wants to merge 1 commit into
Azure:202511_azdfrom
aakashtiwari2630-max:aaktiwar/vxlan_sport

Conversation

@aakashtiwari2630-max

@aakashtiwari2630-max Aakash Tiwari (aakashtiwari2630-max) commented Aug 20, 2026

Copy link
Copy Markdown

Porting PR - sonic-net/sonic-mgmt#25839

Summary of changes:
The outer UDP source port in a Vxlan encapsulated packet is a hash derived value. In some platforms, based on the inner fields, the hash derived source port is getting programmed in the IANA assigned port range due to which the packet is not reaching PTF due to the OVS rules on the test server. This is specially evident in scale tests where the combination of inner fields are more.

As a fix for this, added logic to pass the source port and source port mask during vxlan switch configuration and set it under SWITCH_TABLE. Also, added logic to pass the source port and source port mask as runtime arguments.

Currently, for scale tests, test_scale_ecmp and test_vxlan_tunnel_route_scale, default source port and source port mask values are passed during vxlan switch configuration by default.

Signed-off-by: Aakash Tiwari <aaktiwar@cisco.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant