[202205][buffers] Add 'create_only_config_db_buffers.json' file for the Mellanox devices (not MSFT SKU) #16232
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.
DEPENDS ON: [202205][buffers] Add handler for the 'create_only_config_db_buffers' configuration knob
Why I did it
Add the
create_only_config_db_buffers
attribute to theDEVICE_METADATA|localhost
. If the"create_only_config_db_buffers"
exists and is equal to"true"
- the buffers will be created according to the config_db configuration (for exampleBUFFER_QUEUE|*
table), otherwise the maximum available buffers (which are read from SAI) will be created, regardless of theCONFIG_DB
buffers configuration.Work item tracking
How I did it
Add the
create_only_config_db_buffers.json
files for Mellanox devices (not MSFT SKU's), and inject the content to theCONFIG_DB
during theswss
docker container start.How to verify it
Manual verification:
MSFT SKU
switchshow queue counters
output and verify that only configured inCONFIG_DB
buffers are created/usr/share/sonic/device/$DEVICE/$SKU/create_only_config_db_buffers.json
and change it to:config reload
show queue counters
output and verify that all available buffers are createdWhich release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)