Skip to content

[Counters] Query Counters Stats Capabilities#952

Merged
kcudnik merged 4 commits intosonic-net:masterfrom
shlomibitton:shlomi_new_sai_api_query_counters_statistics_master
Oct 26, 2021
Merged

[Counters] Query Counters Stats Capabilities#952
kcudnik merged 4 commits intosonic-net:masterfrom
shlomibitton:shlomi_new_sai_api_query_counters_statistics_master

Conversation

@shlomibitton
Copy link
Contributor

Signed-off-by: Shlomi Bitton shlomibi@nvidia.com

Implement new SAI API to query counters capabilities.
This API is used to get the capabilities in a way which is not accessing the HW and performs much quicker.
New API introduced on this PR: opencomputeproject/SAI#1148

Design document:
https://github.com/Azure/SONiC/blob/master/doc/Query_Stats_Capability/Query_Stats_Capability_HLD.md

Shlomi Bitton added 3 commits September 9, 2021 11:26
Signed-off-by: Shlomi Bitton <shlomibi@nvidia.com>
Signed-off-by: Shlomi Bitton <shlomibi@nvidia.com>
Remove trailing white spaces
@shlomibitton
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

sai_status_t status = querySupportedBufferPoolCounters(bufferPoolId, statsMode);
if (status != SAI_STATUS_SUCCESS)
{
/* Fallback to legacy approach */
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we have 2 approaches?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The legacy approach is the one we used before.
The new one is not implemented for all vendors, which means a vendor can choose to return NOT_IMPLEMENTED and keep the old way.

@shlomibitton
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@shlomibitton shlomibitton requested a review from kcudnik October 5, 2021 16:11
@shlomibitton
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@shlomibitton
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

@kcudnik could you please help to merge? we will do the submodule update once available.

@kcudnik kcudnik merged commit a718226 into sonic-net:master Oct 26, 2021
@shlomibitton shlomibitton deleted the shlomi_new_sai_api_query_counters_statistics_master branch March 21, 2022 08:53
pettershao-ragilenetworks pushed a commit to pettershao-ragilenetworks/sonic-sairedis that referenced this pull request Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants