Skip to content

[action] [PR:3057] [Mellanox] Fix inconsistence in the shared headroom pool initialization (#3057)#3084

Merged
mssonicbld merged 1 commit intosonic-net:202311from
mssonicbld:cherry/202311/3057
Mar 22, 2024
Merged

[action] [PR:3057] [Mellanox] Fix inconsistence in the shared headroom pool initialization (#3057)#3084
mssonicbld merged 1 commit intosonic-net:202311from
mssonicbld:cherry/202311/3057

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

  • Fix inconsistence in the shared headroom pool initialization

  • Why I did it

During initialization, if SHP is enabled

the buffer pool sizes, xoff have initialized to 0, which means SHP is disabled
but the buffer profiles already indicate SHP
later on the buffer pool sizes are updated with off being non-zero
In case the orchagent starts handling buffer configuration between 2 and 3, it is inconsistent between buffer pools and profiles, which fails Mellanox SAI sanity check.
To avoid it, it indicates SHP enabled by setting a very small buffer pool and SHP sizes

…on (sonic-net#3057)

* Fix inconsistence in the shared headroom pool initialization

* Why I did it

During initialization, if SHP is enabled

the buffer pool sizes, xoff have initialized to 0, which means SHP is disabled
but the buffer profiles already indicate SHP
later on the buffer pool sizes are updated with off being non-zero
In case the orchagent starts handling buffer configuration between 2 and 3, it is inconsistent between buffer pools and profiles, which fails Mellanox SAI sanity check.
To avoid it, it indicates SHP enabled by setting a very small buffer pool and SHP sizes
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #3057

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.

2 participants