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

[202205] [Mellanox] Revert LPM implementation to the old way #17179

Merged
merged 2 commits into from
Dec 12, 2023

Conversation

keboliu
Copy link
Collaborator

@keboliu keboliu commented Nov 15, 2023

Why I did it

backport #17096 because of no clean cherry-pick

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
  • Microsoft ADO (number only):

How I did it

Reverts commit f74c69e.

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)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

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)

Signed-off-by: Kebo Liu <kebol@nvidia.com>
@liat-grozovik
Copy link
Collaborator

@prgeor please help to review.
BTW the sonic-mgmt test will be updated to align to this req.

@lguohan
Copy link
Collaborator

lguohan commented Nov 20, 2023

@prgeor to check

@keboliu
Copy link
Collaborator Author

keboliu commented Nov 28, 2023

Hi @yxieca @prgeor this PR intends to backport #17096 to the 202205 branch, the original PR has been merged. The change to 202205 is not exactly the same because of the codebase difference on both branches. This change has also been verified on the 202205 branch, would you please help to review and merge?

@yxieca
Copy link
Contributor

yxieca commented Nov 28, 2023

@prgeor please help check.

@keboliu
Copy link
Collaborator Author

keboliu commented Dec 7, 2023

@prgeor would you please help to review and approve? this is a backport PR.

@prgeor
Copy link
Contributor

prgeor commented Dec 12, 2023

@prgeor please help check.

@yxieca please help merge

@yxieca yxieca merged commit 2155455 into sonic-net:202205 Dec 12, 2023
10 checks passed
@keboliu keboliu deleted the 202205_revert_lpm branch December 13, 2023 05:46
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