Skip to content
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

Create empty ready lists for buffers by default #535

Merged

Conversation

pavel-shirshov
Copy link
Contributor

What I did
Add additional logic to initialize ready list as empty by default.

Why I did it
Otherwise the port would be stopped if it doesn't have any buffer configuration

How I verified it
Build an image and run on your DUT

Details if related

@pavel-shirshov pavel-shirshov self-assigned this Jul 5, 2018
@pavel-shirshov pavel-shirshov requested a review from lguohan July 5, 2018 19:40
@pavel-shirshov
Copy link
Contributor Author

retest this please

@lguohan
Copy link
Contributor

lguohan commented Jul 5, 2018

can you explain why test_port_buffer_rel.py pass in the first place?

@lguohan
Copy link
Contributor

lguohan commented Jul 5, 2018

do not worry about broadcom and mellanox build failure, it is because sai package header mismatch for now.

Copy link
Contributor

@lguohan lguohan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@lguohan lguohan merged commit 5d31b2d into sonic-net:master Jul 5, 2018
@pavel-shirshov
Copy link
Contributor Author

@pavel-shirshov pavel-shirshov deleted the pavelsh/create_empty_ready_lists branch July 6, 2018 02:20
lguohan pushed a commit that referenced this pull request Jul 12, 2018
* Pospone QueueMap initialization until activation of counters

* Generate queue maps only for front panel ports

* Create empty buffer lists by default
@@ -58,9 +58,20 @@ void BufferOrch::initBufferReadyList(Table& table)
{
SWSS_LOG_ENTER();

// init all ports with an empty list
for (const auto& it: gPortsOrch->getAllPorts())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think gPortsOrch->getAllPorts() will return only one port, the CPU port. Is it what you expected?

@@ -58,9 +58,20 @@ void BufferOrch::initBufferReadyList(Table& table)
{
SWSS_LOG_ENTER();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function will be called twice, so m_port_ready_list_ref will be overwritten again. Is it a bug?

EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
Signed-off-by: Harish Venkatraman <harish_venkatraman@dell.com>
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants