Skip to content

[SAI submodule] Update SAI to 1.7.1#748

Merged
kcudnik merged 12 commits intosonic-net:masterfrom
vmittal-msft:sairedis_sai_1.7.1
Dec 18, 2020
Merged

[SAI submodule] Update SAI to 1.7.1#748
kcudnik merged 12 commits intosonic-net:masterfrom
vmittal-msft:sairedis_sai_1.7.1

Conversation

@vmittal-msft
Copy link
Copy Markdown
Contributor

No description provided.

@kcudnik
Copy link
Copy Markdown
Collaborator

kcudnik commented Dec 15, 2020

what about this one #733?

@vmittal-msft
Copy link
Copy Markdown
Contributor Author

retest vs please

@vmittal-msft vmittal-msft force-pushed the sairedis_sai_1.7.1 branch 2 times, most recently from 0111156 to e687dfd Compare December 16, 2020 17:48
@vmittal-msft
Copy link
Copy Markdown
Contributor Author

retest vs please

kcudnik
kcudnik previously approved these changes Dec 16, 2020
@kcudnik
Copy link
Copy Markdown
Collaborator

kcudnik commented Dec 16, 2020

please fix compilation issues:
../../lib/inc/sai_redis.h:73:32: error: 'SAI_OBJECT_TYPE_FINE_GRAINED_HASH' was not declared in this scope
compile locally before submitting
object type is called "FINE_GRAINED_HASH_FIELD"

@vmittal-msft
Copy link
Copy Markdown
Contributor Author

retest vs please

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);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why this is changed? even if wrong, this code is not used, and did you tested this whether this will work ?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@Pterosaur, can you look at those changes ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There was compilation error due to this macro hence i corrected it.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this function is called loadMACsecAttrFromMACsecSA, so it's getting "SA" attributes, but you changed this to "SC" attribute, how come this was compiling before ?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

those are 2 different object types, and this is SA object, and now you query SC attribute

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Commented the code and added SWSS_LOG_THROW to generate exception for author to fix it in future as per discussion.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

sure, just add comments for other 2 attributes you changed

@kcudnik
Copy link
Copy Markdown
Collaborator

kcudnik commented Dec 17, 2020

retest vs please

@kcudnik kcudnik mentioned this pull request Dec 17, 2020
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);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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
kcudnik
kcudnik previously approved these changes Dec 17, 2020
@daall
Copy link
Copy Markdown
Contributor

daall commented Dec 18, 2020

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:

Dec 17 13:55:20.029414 3ea5d8b82340 NOTICE #orchagent: :- addNextHopGroup: Create next hop group 40.0.0.1@PortChannel001,40.0.0.3@PortChannel002,40.0.0.5@PortChannel003,40.0.0.7@PortChannel004
Dec 17 13:55:20.029444 3ea5d8b82340 ERR #orchagent: :- bulkCreate: mode vlaue 0 is not in range on sai_stats_mode_t
Dec 17 13:55:20.029451 3ea5d8b82340 ERR #orchagent: :- addNextHopGroup: Failed to create next hop group 50000000005e8 member 0: 0

I see similar messages for the other tests that are failing as well.

@kcudnik
Copy link
Copy Markdown
Collaborator

kcudnik commented Dec 18, 2020

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
this bulkCreate: mode vlaue 0 is not in range on sai_stats_mode_t it's like medatada was corrupted really strange, if you have a consistent repro on that it would be good to put some more logs in case where this happens

fixing here: #753, but it can produce same error as above, but i dont have idea why

@lguohan
Copy link
Copy Markdown
Contributor

lguohan commented Dec 18, 2020

retest this please

@kcudnik kcudnik merged commit 7096989 into sonic-net:master Dec 18, 2020
@vmittal-msft vmittal-msft deleted the sairedis_sai_1.7.1 branch December 18, 2020 16:05
Comment on lines +544 to +545
//SAI_METADATA_GET_ATTR_BY_ID(attr, SAI_MACSEC_SA_ATTR_ENCRYPTION_ENABLE, attrCount, attrList);
//macsecAttr.m_encryptionEnable = attr->value.booldata;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Prefer not to have commented code.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

you are welcome to jump in and make a proper fix for this issue if you are knowledgeable of macsec

lguohan pushed a commit that referenced this pull request Dec 19, 2020
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.

5 participants