Skip to content

[cmis] add a parameter to cmis.set_lpmode to ignore the time wait#564

Merged
prgeor merged 1 commit intosonic-net:masterfrom
Junchao-Mellanox:master-optmize-set-lpmode
May 11, 2025
Merged

[cmis] add a parameter to cmis.set_lpmode to ignore the time wait#564
prgeor merged 1 commit intosonic-net:masterfrom
Junchao-Mellanox:master-optmize-set-lpmode

Conversation

@Junchao-Mellanox
Copy link
Copy Markdown
Contributor

Description

Add a parameter to cmis.set_lpmode to allow user ignore the time wait

Motivation and Context

In CmisManagerTask, it calls cmis.set_lpmode for each logical port. The time wait causes a wait_time * num_of_logical_port delay in link up time. The PR is to optimize it.

How Has This Been Tested?

  • Unit test
  • manual test

Additional Information (Optional)

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Copy Markdown
Collaborator

@prgeor kinldy reminder to provide your feedback on this PR

@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to msft-202412: Azure/sonic-platform-common.msft#83

mssonicbld added a commit to mssonicbld/sonic-platform-daemons.msft that referenced this pull request May 21, 2025
Depends on sonic-net/sonic-platform-common#564
<!-- Provide a general summary of your changes in the Title above -->

#### Description
Ignore time wait in `cmis.set_lpmode`

#### Motivation and Context
In `CmisManagerTask`, it calls `cmis.set_lpmode` for each logical port. The time wait causes a `wait_time * num_of_logical_port` delay in link up time. The PR is to optimize it.

#### How Has This Been Tested?
Manual test
unit test

#### Additional Information (Optional)
mssonicbld added a commit to Azure/sonic-platform-daemons.msft that referenced this pull request May 21, 2025
Depends on sonic-net/sonic-platform-common#564
<!-- Provide a general summary of your changes in the Title above -->

#### Description
Ignore time wait in `cmis.set_lpmode`

#### Motivation and Context
In `CmisManagerTask`, it calls `cmis.set_lpmode` for each logical port. The time wait causes a `wait_time failure_prs.log skip_prs.log num_of_logical_port` delay in link up time. The PR is to optimize it.

#### How Has This Been Tested?
Manual test
unit test

#### Additional Information (Optional)
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.

7 participants