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

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

Merged
merged 2 commits into from
Oct 2, 2022

Conversation

lipxu
Copy link
Contributor

@lipxu lipxu commented Sep 28, 2022

Signed-off-by: xuliping [email protected]

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

@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

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

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

@@ -2481,15 +2481,8 @@ def _check_port_buffer_info_and_return(duthost, table, ids, port, expected_profi
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
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
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
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
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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