-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[Mellanox] Revert LPM implementation to the old way #17096
Conversation
…onic-net#16545)" This reverts commit 456a90e.
)" This reverts commit 18cf719.
Signed-off-by: Kebo Liu <kebol@nvidia.com>
Signed-off-by: Kebo Liu <kebol@nvidia.com>
Signed-off-by: Kebo Liu <kebol@nvidia.com>
/azpw run ms_conflict |
/AzurePipelines run ms_conflict |
No pipelines are associated with this pull request. |
/azpw run Azure.sonic-buildimage |
/AzurePipelines run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Kebo Liu <kebol@nvidia.com>
@keboliu can you please elaborate more on the backward compatibility? |
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.
…he dependency on sx_api importing Signed-off-by: Kebo Liu <kebol@nvidia.com>
Hi @prgeor if you remember our current LPM implementation will require the user to explicitly shut down (admin down) the port first, this is not consistence with our original implementation - the user can toggle the LPM regardless of the port admin status. now in this PR we change it back, allowing the user to toggle the LPM w/o shutting down the ports beforehand. |
Signed-off-by: Kebo Liu <kebol@nvidia.com>
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.
@keboliu will be easy for future reference if you could include the Reverted PR# in "How I did it
"
Signed-off-by: Kebo Liu <kebol@nvidia.com>
updated. |
verified on top of 202305 commit 733a902 |
- Why I did it The current low power mode setting implementation requests the user to set the port to admin down first before toggling LP mode, this is not backward compatible, now revert it to the old way so that the user can toggle the LP mode regardless of the port admin status. - How I did it Revert the recent changes related to LPM in PR sonic-net#14130 and sonic-net#16545 - How to verify it Run all sfputil and SFP platform API related tests on all the Mellanox platforms. Signed-off-by: Kebo Liu <kebol@nvidia.com>
Cherry-pick PR to 202305: #17366 |
- Why I did it The current low power mode setting implementation requests the user to set the port to admin down first before toggling LP mode, this is not backward compatible, now revert it to the old way so that the user can toggle the LP mode regardless of the port admin status. - How I did it Revert the recent changes related to LPM in PR #14130 and #16545 - How to verify it Run all sfputil and SFP platform API related tests on all the Mellanox platforms. Signed-off-by: Kebo Liu <kebol@nvidia.com>
Why I did it
The current low power mode setting implementation requests the user to set the port to admin down first before toggling LP mode, this is not backward compatible, now revert it to the old way so that the user can toggle the LP mode regardless of the port admin status.
Work item tracking
How I did it
Revert the recent changes related to LPM in PR #14130 and #16545
How to verify it
run all sfputil and SFP platform API related tests on all the Mellanox platforms.
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)