Skip to content

Add support of Barefoot asic to everflow test#688

Merged
lguohan merged 3 commits intosonic-net:masterfrom
johcheun:master
Sep 1, 2018
Merged

Add support of Barefoot asic to everflow test#688
lguohan merged 3 commits intosonic-net:masterfrom
johcheun:master

Conversation

@johcheun
Copy link
Copy Markdown
Contributor

@johcheun johcheun commented Aug 27, 2018

Description of PR

  • Update everflow test case for Barefoot asic, as Barefoot uses 12 byte ERSPAN header
  • Added mavericks and montara platforms as asic_type barefoot

Type of change

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

Approach

How did you do it?

Added check for asic_type, and only strip first 12 bytes of erspan header before checking for the payload

How did you verify/test it?

Ran everflow testcase by name

Any platform specific information?

montara and mavericks platforms for Barefoot asic

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

Documentation

@msftclas
Copy link
Copy Markdown

msftclas commented Aug 27, 2018

CLA assistant check
All CLA requirements met.

Copy link
Copy Markdown
Contributor

@stcheng stcheng left a comment

Choose a reason for hiding this comment

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

Could you eliminate the sensors test code changes from the EVERFLOW test code changes?

@johcheun johcheun changed the title Add support of Barefoot asic to everflow test Add support of Barefoot asic to everflow and sensors test Aug 29, 2018
@johcheun johcheun changed the title Add support of Barefoot asic to everflow and sensors test Add support of Barefoot asic to everflow test Aug 29, 2018
@johcheun
Copy link
Copy Markdown
Contributor Author

Ok, I will backout the sensors change and raise a separate PR afterward.

@stcheng
Copy link
Copy Markdown
Contributor

stcheng commented Aug 29, 2018

Thanks because the sensors test is pending on the changes of the buildimage change, it is better to have it separated from the mirror test.

@lguohan lguohan dismissed stcheng’s stale review September 1, 2018 06:46

addressed stcheng's change request

@lguohan lguohan merged commit a2fdb8f into sonic-net:master Sep 1, 2018
wangxin pushed a commit to wangxin/sonic-mgmt that referenced this pull request Oct 27, 2025
…onic-net#688)

### Description of PR
Summary: Skip the everflow_dscp_with_policer test for the TH4 and TH5 Broadcom ASICs, as Policer is not supported for MIRROR_SESSION on those ASICs.

Fixes # (issue)

### Type of change
- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [ ] New Test case
 - [x] Skipped for non-supported platforms
- [ ] Test case improvement

### Back port request
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [ ] 202405
- [x] 202412
- [x] 202505

### Approach
#### What is the motivation for this PR?
Mirror policing is not supported on Broadcom TH4/TH5 ASICs, so test_everflow_dscp_with_policer should be skipped accordingly.

#### How did you do it?
Added th4 and th5 to the list of unsupported ASICs for mirror policing.

#### How did you verify/test it?
Attempted to run the test and confirmed it is skipped.
Note: test log shows: "Skipping test since mirror policing is not supported on broadcom th5 platforms"

#### Any platform specific information?
TH4/TH5-based platforms.
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