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

Apply port speed again after disabling port AN #3094

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

PJHsieh
Copy link

@PJHsieh PJHsieh commented Mar 28, 2024

What I did
Apply port speed again after disabling port AN.

In PortsOrch, when autonegotiation is disabled for a port, this PR ensures
that the port speed is updated correctly. If a new speed is configured while
autonegotiation is disabled, the new speed is applied; otherwise, the current
speed setting is reconfigured.

Why I did it
In PortsOrch, the port speed configuration will not be set to SAI when port AN is enabled.
Changing the port speed while port AN is enabled will not take effect after port AN is disabled.

In some chips, the port speed can not be modified when port AN is enabled.

How I verified it

  1. Enable port AN.
  2. Set port speed from speed1 to speed2
  3. Disable port AN.
  4. Make sure port speed is speed2 instead of speed1.

Details if related

Problem and Steps:
Changing the port speed while port AN is enabled will not take effect
after port AN is disabled.

Current behavior/Root Cause:
In PortsOrch, the port speed configuration will not be set to SAI when
port AN is enabled.

Solution:
Apply port speed again after disabling port AN.
@PJHsieh PJHsieh requested a review from prsunny as a code owner March 28, 2024 02:07
@prsunny prsunny requested a review from prgeor April 2, 2024 01:02
PJHsieh added 2 commits May 2, 2024 08:46
In PortsOrch, when autonegotiation is disabled for a port, this commit ensures
that the port speed is updated correctly. If a new speed is configured while
autonegotiation is disabled, the new speed is applied; otherwise, the current
speed setting is reconfigured.
@PJHsieh
Copy link
Author

PJHsieh commented May 2, 2024

Hi, @prgeor , @prsunny , the test error is fixed.

Please review and approve this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant