[202603][VPP] Backport focused port resolution before hostif creation from #1950 - #137
Merged
Jianquan Ye (yejianquan) merged 2 commits intoAug 17, 2026
Merged
Conversation
Backport the focused port-resolution behavior from upstream PR #1950 to the 202603 branch. Resolve SAI ports from their lane list and SONiC port_config.ini so boot-time admin state, MTU, and speed can be applied before hostif creation. Signed-off-by: Jana Palanisamy (janapal) <janapal@cisco.com>
Signed-off-by: Jana Palanisamy (janapal) <janapal@cisco.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Author
|
@microsoft-github-policy-service agree company="Cisco Systems, Inc." |
yue-fred-gao
approved these changes
Aug 14, 2026
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.
Summary
Backports focused VPP port-resolution support from sonic-net/sonic-sairedis#1950 to the
202603branch.This resolves SAI ports from their lane configuration and
port_config.inibefore hostif creation, allowing boot-time admin state, MTU, and speed configuration to be applied correctly.Also exposes the VPP interface-index lookup required by the backported implementation.
Testing
TC1 - PASS: Matched 1G on Local and Peer devices; link came up at 1G.
TC2 - PASS: Matched 10G on both devices; link came up at 10G.
TC3 - PASS: Local 10G and Peer 1G mismatch; both links stayed down.
TC4 - PASS: Local 1G and Peer 10G mismatch; both links stayed down.
TC5 - PASS: Verified boot-time speed replay from 10G to 1G with matched peer.
TC6 - PASS: Verified boot-time speed replay from 1G to 10G with matched peer.
TC7 - PASS: Verified CLI speed change, config save, and reboot persistence.
TC8 - PASS: Regenerated CONFIG_DB from port_config.ini; configured speed was applied during boot.
TC9 - PASS: CONFIG_DB, APPL_DB, STATE_DB, ethtool, VPP, and SAI reflected the expected speed.
TC10 - PASS: Key containers remained running with zero restarts and no failed systemd units.
UT log: focused_port_resolution_ut.txt