-
Notifications
You must be signed in to change notification settings - Fork 279
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
[submodule] Update SAI to latest v1.12 branch #1272
Conversation
Also update VendorSai class to use latest generic api from SAI metadata
Please address merge conflicts. How can I know what new features/fixes come w/ new SAI? |
it adds this commit in SAI: and VendorSai.cpp starts using generated metadata API structure and generic functions to execute common tasks, take a look at file changes |
@@ -24,6 +24,40 @@ VendorSai::VendorSai() | |||
m_apiInitialized = false; | |||
|
|||
memset(&m_apis, 0, sizeof(m_apis)); | |||
|
|||
sai_global_apis_t ga = |
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.
from now on, we keep sai global api pointers in a metadata generated structs, this will be handy when we will want to load dynamically another vendor libsai.so into memory
@kcudnik ,sonic-net/sonic-buildimage#16168 |
for mellanox and broadcom the same error happens:
which build is for barefoot ? btw. i found the issue, fixe is here: #1278 |
already merged, please update sairedis submodule on sonic-net/sonic-buildimage#16168 to help integrate the fix |
@liushilongbuaa this is the issue:
libsai which is build with that image does not implement sai_query_api_version, in this PR i enabled required field for that sai library method saiversion.h header was introduced in in version v1.9.0 in this commit 0b929737 which was on Feb 2022, that SAI library used in that build should already implement that API, lets contact marverll to update library with that api, it's 5min change, implementation looks like this: https://github.com/sonic-net/sonic-sairedis/blob/master/vslib/sai_vs_interfacequery.cpp#L208 sai_status_t sai_query_api_version(
_Out_ sai_api_version_t *version)
{
*version = SAI_API_VERSION;
return SAI_STATUS_SUCCESS;
} @lguohan fyi |
Also update VendorSai class to use latest generic api from SAI metadata.
Since latest SAI uses version v1.12 on master branch, force require sai_query_api_version to be present at all SAI libs