Skip to content

Create empty ready lists for buffers by default#535

Merged
lguohan merged 6 commits intosonic-net:masterfrom
pavel-shirshov:pavelsh/create_empty_ready_lists
Jul 5, 2018
Merged

Create empty ready lists for buffers by default#535
lguohan merged 6 commits intosonic-net:masterfrom
pavel-shirshov:pavelsh/create_empty_ready_lists

Conversation

@pavel-shirshov
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

retest this please

@lguohan
Copy link
Copy Markdown
Contributor

lguohan commented Jul 5, 2018

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

@lguohan
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
SWSS_LOG_ENTER();

// init all ports with an empty list
for (const auto& it: gPortsOrch->getAllPorts())
Copy link
Copy Markdown
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
Copy Markdown
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
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
* Pospone QueueMap initialization until activation of counters

* Generate queue maps only for front panel ports

* Create empty buffer lists by default
jianyuewu pushed a commit to jianyuewu/sonic-swss that referenced this pull request Dec 24, 2025
* Renamed DSCP_TO_FC_MAP and EXP_TO_FC_MAP tables to be in line with the
other QoS map tables

Signed-off-by: Alexandru Banu <v-albanu@microsoft.com>
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