Skip to content

Skip all admin down ports for non-Mellanox device#6433

Merged
Blueve merged 2 commits into
sonic-net:masterfrom
lipxu:20220928_test_buffer_deployment
Oct 2, 2022
Merged

Skip all admin down ports for non-Mellanox device#6433
Blueve merged 2 commits into
sonic-net:masterfrom
lipxu:20220928_test_buffer_deployment

Conversation

@lipxu
Copy link
Copy Markdown
Contributor

@lipxu lipxu commented Sep 28, 2022

Signed-off-by: xuliping xuliping@microsoft.com

Description of PR

Summary:
Fixes # (issue)
Skip all admin down ports for Broadcom device

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

There was no BUFFER_PROFILE_TABLE for admin down ports

How did you do it?

Skip all admin down ports for Broadcom device

How did you verify/test it?

Verify the original failure case

Any platform specific information?

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

Documentation

…om's device

Signed-off-by: xuliping <xuliping@microsoft.com>
@lipxu lipxu requested a review from neethajohn as a code owner September 28, 2022 15:59
@lipxu lipxu requested a review from bingwang-ms September 28, 2022 15:59
@lgtm-com
Copy link
Copy Markdown

lgtm-com Bot commented Sep 28, 2022

This pull request introduces 1 alert when merging c36013a into c41f842 - view on LGTM.com

new alerts:

  • 1 for Unused local variable

@lgtm-com
Copy link
Copy Markdown

lgtm-com Bot commented Sep 30, 2022

This pull request introduces 2 alerts when merging e8ee2b5 into 1620b7d - view on LGTM.com

new alerts:

  • 1 for Unused local variable
  • 1 for Unused import

Comment thread tests/qos/test_buffer.py
else:
if is_mellanox_device(duthost):
buffer_items_to_check = buffer_items_to_check_dict["down"][key_name]
elif is_broadcom_device(duthost) and (asic_type in ['td2', 'td3'] or speed <= '10000'):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove is_broadcom_device condition? We also have other platform such as marvell , seems like this change will also cause skipping happening on other platforms, not just broadcom.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The special handling is needed only for mellanox. buffermgr will not attach any profiles for admin down ports on other platforms

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lipxu could you update your PR title to Skip all admin down ports for non-Mellanox device?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, @Blueve , have updated the title.
Updated the commit last time, but forgot to update the title, sorry for the confusion.

@lipxu lipxu changed the title Skip all admin down ports for Broadcom device Skip all admin down ports for non-Mellanox device Oct 1, 2022
@Blueve Blueve merged commit a8170d7 into sonic-net:master Oct 2, 2022
Azarack pushed a commit to Azarack/sonic-mgmt that referenced this pull request Oct 17, 2022
* remove asic type and speed check, skip all admin down ports on broadcom's device

What is the motivation for this PR?
There was no BUFFER_PROFILE_TABLE for admin down ports

How did you do it?
Skip all admin down ports for Broadcom device

How did you verify/test it?
Verify the original failure case

Signed-off-by: xuliping <xuliping@microsoft.com>
wangxin pushed a commit that referenced this pull request Oct 21, 2022
* remove asic type and speed check, skip all admin down ports on broadcom's device

What is the motivation for this PR?
There was no BUFFER_PROFILE_TABLE for admin down ports

How did you do it?
Skip all admin down ports for Broadcom device

How did you verify/test it?
Verify the original failure case

Signed-off-by: xuliping <xuliping@microsoft.com>
wangxin pushed a commit that referenced this pull request Oct 21, 2022
* remove asic type and speed check, skip all admin down ports on broadcom's device

What is the motivation for this PR?
There was no BUFFER_PROFILE_TABLE for admin down ports

How did you do it?
Skip all admin down ports for Broadcom device

How did you verify/test it?
Verify the original failure case

Signed-off-by: xuliping <xuliping@microsoft.com>
allen-xf pushed a commit to allen-xf/sonic-mgmt that referenced this pull request Oct 28, 2022
* remove asic type and speed check, skip all admin down ports on broadcom's device

What is the motivation for this PR?
There was no BUFFER_PROFILE_TABLE for admin down ports

How did you do it?
Skip all admin down ports for Broadcom device

How did you verify/test it?
Verify the original failure case

Signed-off-by: xuliping <xuliping@microsoft.com>
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.

4 participants