-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[buffers] Add handler for the 'create_only_config_db_buffers' configuration knob #2883
[buffers] Add handler for the 'create_only_config_db_buffers' configuration knob #2883
Conversation
b0f6e07
to
34ca6e4
Compare
34ca6e4
to
41a9f1e
Compare
41a9f1e
to
2c4fade
Compare
/azpw run Azure.sonic-swss |
/AzurePipelines run Azure.sonic-swss |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run Azure.sonic-swss |
/AzurePipelines run Azure.sonic-swss |
Azure Pipelines successfully started running 1 pipeline(s). |
2c4fade
to
7aba9d1
Compare
@vadymhlushko-mlnx , can you check why the test is failing? |
e98dcbd
to
aa23409
Compare
…on knob Signed-off-by: vadymhlushko-mlnx <vadymh@nvidia.com>
Signed-off-by: vadymhlushko-mlnx <vadymh@nvidia.com>
Signed-off-by: vadymhlushko-mlnx <vadymh@nvidia.com>
be42e2f
to
976649e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, minor comment. @abdosi , @prabhataravind , please review/sign-off.
@neethajohn for viz
} | ||
catch(const std::system_error& e) | ||
{ | ||
SWSS_LOG_ERROR("System error: %s", e.what()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you change this to WARNING? for non existent config_db, we don't want an ERR log printed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error statement in the catch
block will be printed only if the deviceMetadataConfigTable.hget()
throws an exception.
If the create_only_config_db_buffers
do not exist in the config_db
the deviceMetadataConfigTable.hget()
returns false
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@prsunny could we include this PR in the |
@vadymhlushko-mlnx have you tested 202305 image with this PR? @prsunny could we have ADO to track if support cherry pick to 202305? |
@StormLiangMS Please use this ADO: 25518393 |
…ration knob (#2883) * [buffers] Add handler for "create_only_config_db_buffers" configuration knob If the "create_only_config_db_buffers" is equal to "true" - buffers will be created according to the config_db configuration (for example BUFFER_QUEUE|* table). If the "create_only_config_db_buffers" is equal to "false" or does not exist - the maximum available buffers (which are read from SAI) will be created, regardless of the config_db buffer config.
What I did
Add support in the orchagent for the configuration knob:
Why I did it
If the
"create_only_config_db_buffers"
is equal to"true"
- buffers will be created according to the config_db configuration (for exampleBUFFER_QUEUE|*
table).If the
"create_only_config_db_buffers"
is equal to"false"
or does not exist - the maximum available buffers (which are read from SAI) will be created, regardless ofthe config_db
buffer config.How I verified it
Add UT.
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 createdDetails if related