-
Notifications
You must be signed in to change notification settings - Fork 554
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
Add support for voq counters in portsorch. #1913
Conversation
1) Add m_voq_ids to SystemPortInfo to maintain the list of queue ids. 2) Add two new tables COUNTERS_SYSTEM_PORT_NAME_MAP and COUNTERS_VOQ_NAME_MAP to enable queuestat to differentiate between Port Tx queues and Voqs. 3) Add a new function initializeVoqs that retrieves the number of voqs for a system port and stores the voq object ids in m_voq_ids 4) Add code to handle queue type SAI_QUEUE_TYPE_UNICAST_VOQ. 5) Initialize voqs and populate COUNTERS_SYSTEM_PORT_NAME_MAP in addSystemPorts function. 6) Update generateQueueMap to generate queue maps for both Txqs and Voq. For PHY ports in a voq system both Txqs and Voqs are instantiated. For Voqs of remote system port, only Voq counters are initialized.
Build dependency on sonic-swss-common/pull/530 |
} | ||
|
||
m_isQueueMapGenerated = true; | ||
} | ||
|
||
void PortsOrch::generateQueueMapPerPort(const Port& port) | ||
void PortsOrch::generateQueueMapPerPort(const Port& port, bool voq) |
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.
instead of passing argument, can we generalize this function generateQueueMapPerPort to call initializeVoqs if global switch type is voq
* Added the Route Module to the Debug Dump Utility Signed-off-by: Vivek Reddy Karri <[email protected]>
@skbarista, can you fix the conflicts ? |
1 similar comment
@skbarista, can you fix the conflicts ? |
@arlakshm sorry missed this message. Will do it next week and refresh the pr. Thanks, Sambath |
Hi @skbarista, are conflicts resolved |
@arlakshm I resolved the conflict and I am looking at some test failures from the build. I see there are some new conflicts. Will resolve them once I fix the test failures. |
@arlakshm sonic-net/sonic-sairedis#1061 fixes the build failure for this pull request. |
@skbarista Can you please resolve conflicts and take care of build errors ? |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Commenter does not have sufficient privileges for PR 1913 in repo sonic-net/sonic-swss |
/azpw run sonic-buildimage |
/AzurePipelines run sonic-buildimage |
No pipelines are associated with this pull request. |
/azp run sonic-net/sonic-swss |
No pipelines are associated with this pull request. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@skbarista Can you please update your branch to latest and retry ? |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@skbarista is there another PR to replace this one ? Please add comment why it's closed and also link to the other PR? Thanks. |
What I did
COUNTERS_VOQ_NAME_MAP to enable queuestat to differentiate between
Port Tx queues and Voqs.
for a system port and stores the voq object ids in m_voq_ids
addSystemPorts function.
For PHY ports in a voq system both Txqs and Voqs are instantiated. For
Voqs of remote system port, only Voq counters are initialized.
Why I did it
Add support for voq counters.
How I verified it
Modified queuestat locally and confirming the counters are populated for Voqs.
Details if related