Adding support for new SAI API sai_query_attribute_capability()#645
Merged
gechiang merged 5 commits intosonic-net:masterfrom Jul 22, 2020
gechiang:master
Merged
Adding support for new SAI API sai_query_attribute_capability()#645gechiang merged 5 commits intosonic-net:masterfrom gechiang:master
gechiang merged 5 commits intosonic-net:masterfrom
gechiang:master
Conversation
kcudnik
reviewed
Jul 21, 2020
kcudnik
reviewed
Jul 21, 2020
kcudnik
reviewed
Jul 21, 2020
kcudnik
reviewed
Jul 21, 2020
kcudnik
reviewed
Jul 21, 2020
kcudnik
reviewed
Jul 21, 2020
kcudnik
requested changes
Jul 21, 2020
Collaborator
kcudnik
left a comment
There was a problem hiding this comment.
Please address comments
kcudnik
reviewed
Jul 21, 2020
kcudnik
reviewed
Jul 21, 2020
kcudnik
reviewed
Jul 21, 2020
kcudnik
reviewed
Jul 21, 2020
kcudnik
reviewed
Jul 21, 2020
kcudnik
reviewed
Jul 21, 2020
|
Typo in the PR title. |
kcudnik
reviewed
Jul 22, 2020
Contributor
Author
All comments have been addressed. Please help take a look at my last change and see if anything else needs to be addressed. |
kcudnik
approved these changes
Jul 22, 2020
gechiang
added a commit
to sonic-net/sonic-buildimage
that referenced
this pull request
Jul 28, 2020
Advanced Submodule head of Sonic-Sairedis and picked up the following changes: Workaround getSwitchType failure due to NPU SAI not yet supporting it (#647) sonic-net/sonic-sairedis#647 Adding support for new SAI API sai_query_attribute_capability() (#645) sonic-net/sonic-sairedis#645 [syncd] ARM32 bit fixes, for 64bit printf format specifier. (#643) Signed-off-by: Rajkumar Pennadam Ramamoorthy <rpennadamram@marvell.com> sonic-net/sonic-sairedis#643 [syncd] Add support for synchronous bulk api (#640) sonic-net/sonic-sairedis#640
gechiang
added a commit
that referenced
this pull request
Aug 6, 2020
) Previously the code to support query SAI attribute capabilities were commented out due to discovered missing BRCM Vendor SAI API missing in their 3.7.5.1 debian package that caused linking error during image build. See #645 for details on the SAI attribute capability query support. Since BRCM has provided the patch for the missing API stub code and included them in BRCM SAI 3.7.5.1-2 (see sonic-net/sonic-buildimage#5101), I am raising this PR to re-enable the calling to Vendor SAI API sai_query_attribute_capability(). I have tested this with the new BRCM SAI 3.7.5.1-2 debians and ensured that the linking issue was fixed by that patch.
pettershao-ragilenetworks
pushed a commit
to pettershao-ragilenetworks/sonic-sairedis
that referenced
this pull request
Nov 18, 2022
…c-net#645) * Addind support for new SAI API sai_query_attribute_capability()
pettershao-ragilenetworks
pushed a commit
to pettershao-ragilenetworks/sonic-sairedis
that referenced
this pull request
Nov 18, 2022
…onic-net#651) Previously the code to support query SAI attribute capabilities were commented out due to discovered missing BRCM Vendor SAI API missing in their 3.7.5.1 debian package that caused linking error during image build. See sonic-net#645 for details on the SAI attribute capability query support. Since BRCM has provided the patch for the missing API stub code and included them in BRCM SAI 3.7.5.1-2 (see sonic-net/sonic-buildimage#5101), I am raising this PR to re-enable the calling to Vendor SAI API sai_query_attribute_capability(). I have tested this with the new BRCM SAI 3.7.5.1-2 debians and ensured that the linking issue was fixed by that patch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change adds the support of allowing application to invoking SAI API "sai_query_attribute_capability()" from the sonic application side.
This change has been tested using the Mellanox platform by exercising this new change to query the port object attribute SAI_PORT_ATTR_TPID
as well as LAG object attribute SAI_LAG_ATTR_TPID.
These two calls were exercised at orchagent init time in order to test out the changes are working.
I could not test this with BRCM platform due to the required SAI API "sai_query_attribute_capability()" although is defined in the SAI header file but was not part of the BRCM SAI code in 3.7.5.1 and causes link issue during build. So the final change that I am asking to check in comments out the final call to "sai_query_attribute_capability()". When BRCM SAI 4.2 (which has this SAI API support) is finally integrated into the master branch, I will have this uncommented out, tested and raise another PR to enable this full functionality.
Please see attached for the syslog and sairedis record captured during my testing using the Mellanox platform.
AttrCapabilityQueryTestLog.txt
Please note that this PR has a dependency on sonic-net/sonic-swss-common#362
If this PR is needed in other branches, one must ensure that the change for sonic-net/sonic-swss-common#362 is already picked up in that branch as well.