[tests/vxlan]: Configure sport as part of vxlan switch configuration - #1364
Open
Aakash Tiwari (aakashtiwari2630-max) wants to merge 1 commit into
Open
Conversation
Signed-off-by: Aakash Tiwari <aaktiwar@cisco.com>
Aakash Tiwari (aakashtiwari2630-max)
requested a review
from Sai Kiran (opcoder0)
as a code owner
August 20, 2026 07:39
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.