Skip to content
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

Merged

Conversation

stepanblyschak
Copy link
Contributor

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)

Signed-off-by: vadymhlushko-mlnx <vadymh@nvidia.com>
# 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))
Copy link
Collaborator

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

Copy link
Contributor Author

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>
@stepanblyschak
Copy link
Contributor Author

@prgeor Please add "Request for 202405" label, it should cherry-pick without issues

@prgeor prgeor merged commit efb4dbd into sonic-net:master Jun 10, 2024
5 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-platform-daemons that referenced this pull request Jun 12, 2024
…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>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #499

mssonicbld pushed a commit that referenced this pull request Jun 12, 2024
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants