Skip to content

[action] [PR:2060] vpp: refresh speed cache after successful update - #140

Merged
mssonicbld merged 1 commit into
Azure:202603from
mssonicbld:cherry/msft-202603/2060
Sep 1, 2026
Merged

[action] [PR:2060] vpp: refresh speed cache after successful update#140
mssonicbld merged 1 commit into
Azure:202603from
mssonicbld:cherry/msft-202603/2060

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator

Description of PR

Summary:

Refreshes the cached operational speed after a successful VPP interface speed update. This prevents operational state from temporarily retaining the previous speed after a runtime speed change.

Type of change

  • Bug fix
  • New feature
  • Refactor / cleanup
  • Documentation update
  • Test improvement

Approach

What is the motivation for this PR?

SAI-VPP could return a cached speed immediately after successfully changing an interface speed, causing the reported operational speed to remain stale.

Work item tracking
  • Microsoft ADO (number only): N/A

How did you do it?

  • Check the result of the VPP speed-update request.
  • Return failure if the speed update fails.
  • Refresh the cached interface speed after a successful update.
  • Log a warning if the cache refresh fails.

How did you verify/test it?

Verified repeated 1G-to-10G and 10G-to-1G transitions. The configured and operational speed states converged correctly without requiring an additional interface flap.

Tested Branch and UT logs:

Verified the fix on 202603 branch.
Test results/UT logs:
arctos_saivpp_speed_cache_refresh_ut_20260825.txt

Any platform specific information?

This change applies to the VPP SAI implementation.

Documentation

No documentation changes are required.

Signed-off-by: Sonic Build Admin sonicbld@microsoft.com

### Description of PR

Summary:

Refreshes the cached operational speed after a successful VPP interface speed update. This prevents operational state from temporarily retaining the previous speed after a runtime speed change.

### Type of change

- [x] Bug fix
- [ ] New feature
- [ ] Refactor / cleanup
- [ ] Documentation update
- [ ] Test improvement

### Approach

#### What is the motivation for this PR?

SAI-VPP could return a cached speed immediately after successfully changing an interface speed, causing the reported operational speed to remain stale.

##### Work item tracking

- Microsoft ADO **(number only)**: N/A

#### How did you do it?

- Check the result of the VPP speed-update request.
- Return failure if the speed update fails.
- Refresh the cached interface speed after a successful update.
- Log a warning if the cache refresh fails.

#### How did you verify/test it?

Verified repeated 1G-to-10G and 10G-to-1G transitions. The configured and operational speed states converged correctly without requiring an additional interface flap.

### Tested Branch and UT logs:

Verified the fix on 202603 branch.
Test results/UT logs:
[arctos_saivpp_speed_cache_refresh_ut_20260825.txt](https://github.com/user-attachments/files/31654725/arctos_saivpp_speed_cache_refresh_ut_20260825.txt)

#### Any platform specific information?

This change applies to the VPP SAI implementation.

### Documentation

No documentation changes are required.

Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator Author

Original PR: sonic-net/sonic-sairedis#2060

@azure-pipelines

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

@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

1 similar comment
@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
1 pipeline(s) were filtered out due to trigger conditions.

1 similar comment
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
1 pipeline(s) were filtered out due to trigger conditions.

@mssonicbld
mssonicbld merged commit 0dcd8d2 into Azure:202603 Sep 1, 2026
5 checks passed
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.

1 participant