-
Notifications
You must be signed in to change notification settings - Fork 163
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
[CMIS] Skip re-init flow for SW-controlled ports in case of fastboot #497
[CMIS] Skip re-init flow for SW-controlled ports in case of fastboot #497
Conversation
Signed-off-by: vadymhlushko-mlnx <vadymh@nvidia.com>
sonic-xcvrd/xcvrd/xcvrd.py
Outdated
# Force DataPath re-init | ||
api.tx_disable_channel(media_lanes_mask, True) | ||
if is_fast_reboot and self.check_datapath_state(api, host_lanes_mask, ['DataPathActivated']): | ||
self.log_notice("{} Skip re-init flow".format(lport)) |
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.
@stepanblyschak please add "Skip datapath re-init in fast-reboot" log
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.
@prgeor Done
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
@prgeor Please add "Request for 202405" label, it should cherry-pick without issues |
…onic-net#497) * [CMIS] Skip re-init flow for SW-controlled ports in case of fastboot Signed-off-by: vadymhlushko-mlnx <vadymh@nvidia.com> * Change the log message Signed-off-by: Stepan Blyschak <stepanb@nvidia.com> --------- Signed-off-by: vadymhlushko-mlnx <vadymh@nvidia.com> Signed-off-by: Stepan Blyschak <stepanb@nvidia.com> Co-authored-by: vadymhlushko-mlnx <vadymh@nvidia.com>
Cherry-pick PR to 202405: #499 |
…497) * [CMIS] Skip re-init flow for SW-controlled ports in case of fastboot Signed-off-by: vadymhlushko-mlnx <vadymh@nvidia.com> * Change the log message Signed-off-by: Stepan Blyschak <stepanb@nvidia.com> --------- Signed-off-by: vadymhlushko-mlnx <vadymh@nvidia.com> Signed-off-by: Stepan Blyschak <stepanb@nvidia.com> Co-authored-by: vadymhlushko-mlnx <vadymh@nvidia.com>
Description
Skip the re-init flow for the SW-controlled ports in case of fastboot.
Because during fastboot the switch didn't reset the modules, so there is no need to reinitialize them.
Motivation and Context
To improve the fastboot data-plane disruption time.
How Has This Been Tested?
Run the sonic-mgmt/tests/platform_tests/test_advanced_reboot.py::test_fast_reboot
Additional Information (Optional)