Skip to content

[202603][VPP] Backport focused port resolution before hostif creation from #1950 - #137

Merged
Jianquan Ye (yejianquan) merged 2 commits into
Azure:202603from
janpal23:focused-port-resolution
Aug 17, 2026
Merged

[202603][VPP] Backport focused port resolution before hostif creation from #1950#137
Jianquan Ye (yejianquan) merged 2 commits into
Azure:202603from
janpal23:focused-port-resolution

Conversation

@janpal23

Copy link
Copy Markdown

Summary

Backports focused VPP port-resolution support from sonic-net/sonic-sairedis#1950 to the 202603 branch.
This resolves SAI ports from their lane configuration and port_config.ini before 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

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

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

@janpal23

janpal23 commented Aug 14, 2026

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree company="Cisco Systems, Inc."

@yejianquan
Jianquan Ye (yejianquan) merged commit b400d5e into Azure:202603 Aug 17, 2026
4 checks passed
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.

3 participants