-
Notifications
You must be signed in to change notification settings - Fork 558
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
Create empty ready lists for buffers by default #535
Conversation
retest this please |
can you explain why test_port_buffer_rel.py pass in the first place? |
do not worry about broadcom and mellanox build failure, it is because sai package header mismatch for now. |
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.
Because we have buffers in vs https://github.com/Azure/sonic-buildimage/blob/master/platform/vs/docker-sonic-vs/buffers.json.j2 |
* 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()) |
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.
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(); |
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.
This function will be called twice, so m_port_ready_list_ref will be overwritten again. Is it a bug?
Signed-off-by: Harish Venkatraman <harish_venkatraman@dell.com>
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