Skip to content

[Mellanox] Improve the setting speed function for onyx fanout#11763

Merged
bingwang-ms merged 1 commit intosonic-net:masterfrom
JibinBao:fix_onyx_set_speed_issue
Mar 4, 2024
Merged

[Mellanox] Improve the setting speed function for onyx fanout#11763
bingwang-ms merged 1 commit intosonic-net:masterfrom
JibinBao:fix_onyx_set_speed_issue

Conversation

@JibinBao
Copy link
Contributor

Description of PR

The speed support list for onyx is like '1G 10G 25G 40G 50Gx1 50Gx2 100Gx2 100Gx4 200Gx4'. When the fanout is onyx, we need to set the speed according to the speed support list.
For example, when dut and fanout all support 50G, if the support speed list of fanout just includes 50Gx1 not includes 50G, we need to set the speed with 50Gx1 instead of 50G, otherwise, the port can not be up.

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205
  • 202305
  • 202311

Approach

What is the motivation for this PR?

Improve the setting speed function for onyx fanout

How did you do it?

Select the match speed from the support speed list

How did you verify/test it?

Run testQosSaiDwrr with onyx fanout

Any platform specific information?

Any

Supported testbed topology if it's a new test case?

Documentation

The speed support list for onyx is like '1G 10G 25G 40G 50Gx1 50Gx2 100Gx2 100Gx4 200Gx4'. When the fanout is onyx, we need to set the speed according to the speed support list. For example, when dut and fanout all support 50G, if support speed list of fanout just includes 50Gx1 not includes 50G, we need to set the speed with 50Gx1 instead of 50G, otherwise, the port can not be up.

Change-Id: I5d14151422fc10ee23fd410d999278cff59ff52b
@bingwang-ms
Copy link
Collaborator

LGTM.

@bingwang-ms bingwang-ms merged commit c13c941 into sonic-net:master Mar 4, 2024
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Mar 22, 2024
The speed support list for onyx is like '1G 10G 25G 40G 50Gx1 50Gx2 100Gx2 100Gx4 200Gx4'. When the fanout is onyx, we need to set the speed according to the speed support list. For example, when dut and fanout all support 50G, if support speed list of fanout just includes 50Gx1 not includes 50G, we need to set the speed with 50Gx1 instead of 50G, otherwise, the port can not be up.

Change-Id: I5d14151422fc10ee23fd410d999278cff59ff52b
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #12107

mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Mar 22, 2024
The speed support list for onyx is like '1G 10G 25G 40G 50Gx1 50Gx2 100Gx2 100Gx4 200Gx4'. When the fanout is onyx, we need to set the speed according to the speed support list. For example, when dut and fanout all support 50G, if support speed list of fanout just includes 50Gx1 not includes 50G, we need to set the speed with 50Gx1 instead of 50G, otherwise, the port can not be up.

Change-Id: I5d14151422fc10ee23fd410d999278cff59ff52b
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #12108

mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Mar 22, 2024
The speed support list for onyx is like '1G 10G 25G 40G 50Gx1 50Gx2 100Gx2 100Gx4 200Gx4'. When the fanout is onyx, we need to set the speed according to the speed support list. For example, when dut and fanout all support 50G, if support speed list of fanout just includes 50Gx1 not includes 50G, we need to set the speed with 50Gx1 instead of 50G, otherwise, the port can not be up.

Change-Id: I5d14151422fc10ee23fd410d999278cff59ff52b
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202205: #12109

mssonicbld pushed a commit that referenced this pull request Mar 22, 2024
The speed support list for onyx is like '1G 10G 25G 40G 50Gx1 50Gx2 100Gx2 100Gx4 200Gx4'. When the fanout is onyx, we need to set the speed according to the speed support list. For example, when dut and fanout all support 50G, if support speed list of fanout just includes 50Gx1 not includes 50G, we need to set the speed with 50Gx1 instead of 50G, otherwise, the port can not be up.

Change-Id: I5d14151422fc10ee23fd410d999278cff59ff52b
mssonicbld pushed a commit that referenced this pull request Mar 22, 2024
The speed support list for onyx is like '1G 10G 25G 40G 50Gx1 50Gx2 100Gx2 100Gx4 200Gx4'. When the fanout is onyx, we need to set the speed according to the speed support list. For example, when dut and fanout all support 50G, if support speed list of fanout just includes 50Gx1 not includes 50G, we need to set the speed with 50Gx1 instead of 50G, otherwise, the port can not be up.

Change-Id: I5d14151422fc10ee23fd410d999278cff59ff52b
mssonicbld pushed a commit that referenced this pull request Mar 22, 2024
The speed support list for onyx is like '1G 10G 25G 40G 50Gx1 50Gx2 100Gx2 100Gx4 200Gx4'. When the fanout is onyx, we need to set the speed according to the speed support list. For example, when dut and fanout all support 50G, if support speed list of fanout just includes 50Gx1 not includes 50G, we need to set the speed with 50Gx1 instead of 50G, otherwise, the port can not be up.

Change-Id: I5d14151422fc10ee23fd410d999278cff59ff52b
JibinBao added a commit to JibinBao/sonic-mgmt that referenced this pull request Jul 12, 2024
Change-Id: I753593ed128bd4c6a6915bca8eebf788743d2bd5
bingwang-ms pushed a commit that referenced this pull request Jul 22, 2024
Change-Id: I753593ed128bd4c6a6915bca8eebf788743d2bd5
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jul 22, 2024
Change-Id: I753593ed128bd4c6a6915bca8eebf788743d2bd5
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jul 22, 2024
Change-Id: I753593ed128bd4c6a6915bca8eebf788743d2bd5
mssonicbld pushed a commit that referenced this pull request Jul 22, 2024
Change-Id: I753593ed128bd4c6a6915bca8eebf788743d2bd5
mssonicbld pushed a commit that referenced this pull request Jul 22, 2024
Change-Id: I753593ed128bd4c6a6915bca8eebf788743d2bd5
arista-hpandya pushed a commit to arista-hpandya/sonic-mgmt that referenced this pull request Oct 2, 2024
Change-Id: I753593ed128bd4c6a6915bca8eebf788743d2bd5
vikshaw-Nokia pushed a commit to vikshaw-Nokia/sonic-mgmt that referenced this pull request Oct 23, 2024
Change-Id: I753593ed128bd4c6a6915bca8eebf788743d2bd5
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.

5 participants