-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Question regarding SAI_SWITCH_ATTR_UNINIT_DATA_PLANE_ON_REMOVAL #8980
Comments
Thanks for opening this issue! |
@yxieca can you explain ? |
Interesting. I think maybe only Mellanox platform requires such indication? Other platforms' default behavior is to retain data plane. |
should it be set to false for fast-reboot/warm-reboot irrespective of the platform type as suggested by SAI spec? Platforms whose default behavior is to retain the data plane, will do that anyway. Context : We are running Sonic on our platform, we are exploring the usage of this attribute to see if it can be taken advantage of to reduce the convergence time for fast-reboot. |
any more insight into this? |
so, the reason is that at that time, the capability query is not there. so, we made the macro. now i believe we can query the attribute if it is support or not. if yes, we call it, otherwise we do not call it. if cisco can make the code changes, msft can coordinate and make sure if won't cause regression on other platforms. |
@lguohan , for clarification, are you suggesting we use SAI api : sai_query_attribute_capability to check if the attribute above is supported or not and then call make the subsequent call to set it? |
Why I did it Fixes #8980 partly. The corresponding changes in sonic-sairedis is here : sonic-net/sonic-sairedis#975 How I did it Include changes from both repos and build an image for verification. How to verify it Trigger fast-reboot with the changes, see the attribute SAI_SWITCH_ATTR_UNINIT_DATA_PLANE_ON_REMOVAL being set at the SAI level. Signed-off-by: Thushar Gowda <24815472+tbgowda@users.noreply.github.com>
Why I did it Fixes #8980 partly. The corresponding changes in sonic-sairedis is here : sonic-net/sonic-sairedis#975 How I did it Include changes from both repos and build an image for verification. How to verify it Trigger fast-reboot with the changes, see the attribute SAI_SWITCH_ATTR_UNINIT_DATA_PLANE_ON_REMOVAL being set at the SAI level. Signed-off-by: Thushar Gowda <24815472+tbgowda@users.noreply.github.com>
Hello,
From SAI spec, it looks like the above mentioned attribute is set to false for fast reboot.
From the Syncd implementation it looks like it is being sent only for Mellanox boxes.
https://github.com/Azure/sonic-sairedis/blob/f2075ffd339584d5250dfc66cd3dd3288d4ba3d5/syncd/Makefile.am#L71
https://github.com/Azure/sonic-sairedis/blob/1020de71b2f842396d87761a2bf7a725fbd0b8c1/syncd/Syncd.cpp#L4536
It isn't clear why it is being sent only for Mellanox and not for other vendors.
And there is an issue raised but with no conclusion : #4008
So, I am confused as to when, where and how will the above mentioned attribute be set. Any clarification is much appreciated.
The text was updated successfully, but these errors were encountered: