[SAI submodule] Update SAI to 1.7.1#748
Conversation
|
what about this one #733? |
|
retest vs please |
48efe7e to
6ae8503
Compare
0111156 to
e687dfd
Compare
e687dfd to
f4040f4
Compare
|
retest vs please |
|
please fix compilation issues: |
|
retest vs please |
vslib/src/SwitchStateBaseMACsec.cpp
Outdated
| macsecAttr.m_an = attr->value.u8; | ||
|
|
||
| SAI_METADATA_GET_ATTR_BY_ID(attr, SAI_MACSEC_SA_ATTR_ENCRYPTION_ENABLE, attrCount, attrList); | ||
| SAI_METADATA_GET_ATTR_BY_ID(attr, SAI_MACSEC_SC_ATTR_ENCRYPTION_ENABLE, attrCount, attrList); |
There was a problem hiding this comment.
why this is changed? even if wrong, this code is not used, and did you tested this whether this will work ?
There was a problem hiding this comment.
There was compilation error due to this macro hence i corrected it.
There was a problem hiding this comment.
this function is called loadMACsecAttrFromMACsecSA, so it's getting "SA" attributes, but you changed this to "SC" attribute, how come this was compiling before ?
There was a problem hiding this comment.
those are 2 different object types, and this is SA object, and now you query SC attribute
There was a problem hiding this comment.
Commented the code and added SWSS_LOG_THROW to generate exception for author to fix it in future as per discussion.
There was a problem hiding this comment.
sure, just add comments for other 2 attributes you changed
|
retest vs please |
vslib/src/SwitchStateBaseMACsec.cpp
Outdated
| macsecAttr.m_an = attr->value.u8; | ||
|
|
||
| SAI_METADATA_GET_ATTR_BY_ID(attr, SAI_MACSEC_SA_ATTR_ENCRYPTION_ENABLE, attrCount, attrList); | ||
| SAI_METADATA_GET_ATTR_BY_ID(attr, SAI_MACSEC_SC_ATTR_ENCRYPTION_ENABLE, attrCount, attrList); |
There was a problem hiding this comment.
this function is called loadMACsecAttrFromMACsecSA, so it's getting "SA" attributes, but you changed this to "SC" attribute, how come this was compiling before ?
Fix for vslib
64cf87a to
ef6684f
Compare
|
It looks like the same set of tests are failing consistently and all of them seem to be related to next hop groups. I took a look at the logs from one of the failures (https://sonic-jenkins.westus2.cloudapp.azure.com/job/vs/job/sonic-sairedis-build-pr/845/artifact/swss/tests/log/test_acl_portchannel/log/) and found this: I see similar messages for the other tests that are failing as well. |
|
there is a bug in metadata where sai_metadata_enum_sai_stats_mode_t is used instead of sai_metadata_enum_sai_bulk_op_error_mode_t, and i will fix that, but coincidently, value 0 is in both of those, that is interesting fail :D this is interesting, since this was working with bulk operations from 201811 branch to master which i recently checked with @shi-su and no issues on that mode fixing here: #753, but it can produce same error as above, but i dont have idea why |
Signed-off-by: kcudnik <[email protected]>
|
retest this please |
| //SAI_METADATA_GET_ATTR_BY_ID(attr, SAI_MACSEC_SA_ATTR_ENCRYPTION_ENABLE, attrCount, attrList); | ||
| //macsecAttr.m_encryptionEnable = attr->value.booldata; |
There was a problem hiding this comment.
Prefer not to have commented code.
There was a problem hiding this comment.
you are welcome to jump in and make a proper fix for this issue if you are knowledgeable of macsec
No description provided.