[vslib]: hostif enum capability query API support#1586
Merged
saiarcot895 merged 3 commits intosonic-net:masterfrom Jun 10, 2025
Merged
[vslib]: hostif enum capability query API support#1586saiarcot895 merged 3 commits intosonic-net:masterfrom
saiarcot895 merged 3 commits intosonic-net:masterfrom
Conversation
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
please add unittests to satisfy code coverage |
5fb557c to
c54eb01
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
c54eb01 to
6563625
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
kcudnik
previously approved these changes
Apr 24, 2025
dgsudharsan
approved these changes
May 2, 2025
kcudnik
reviewed
May 3, 2025
kcudnik
reviewed
May 3, 2025
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
kcudnik
previously approved these changes
May 5, 2025
Collaborator
|
could you also add unittests to cover this case ? |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
@kcudnik I added missing UT also for DEBUG_COUNTER. Can you please check now? |
Contributor
Author
|
@kcudnik Some of the PR checks are getting cancelled. All checks were passing a few days ago on this PR, but they started failing after I rebased the branch. Could you please help look into this? PR checks cancellation reason: |
Collaborator
|
this is due image ubuntu 20.04 is not available any more, i fixed it here:#1603 |
62df57d to
10bcf67
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
1. vslib support for SAI_OBJECT_TYPE_HOSTIF_TRAP, attribute - SAI_HOSTIF_TRAP_ATTR_TRAP_TYPE 2. Added UT for SAI_OBJECT_TYPE_HOSTIF_TRAP 3. Added UT for SAI_OBJECT_TYPE_DEBUG_COUNTER HLD: sonic-net/SONiC#1943 Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com>
Added unittest comments to satisfy PR checks. Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com>
10bcf67 to
9d7c7b3
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
|
@saiarcot895 , could you please merge this? |
kcudnik
approved these changes
Jun 9, 2025
saiarcot895
approved these changes
Jun 9, 2025
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
Cherry-pick PR to 202505: #1620 |
mssonicbld
added a commit
to mssonicbld/sonic-swss
that referenced
this pull request
Aug 5, 2025
**What I did** - Added neighbor_miss trap type support - enum capability query for hostif trap type in copporch.cpp - Added hw_status field to COPP_TRAP_TABLE table in state_db **Why I did it** HLD: [sonic-net/SONiC#1943](sonic-net/SONiC#1943) **How I verified it** Verified with test_copp.py DVS test Verified on Sonic switch with and without neighbor_miss trap support by vendorSAI. **Details if related** PR Dependencies: - Depends on: sonic-net/sonic-swss-common#1010 - Depends on: sonic-net/sonic-sairedis#1586 Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com>
mssonicbld
added a commit
to sonic-net/sonic-swss
that referenced
this pull request
Aug 7, 2025
**What I did** - Added neighbor_miss trap type support - enum capability query for hostif trap type in copporch.cpp - Added hw_status field to COPP_TRAP_TABLE table in state_db **Why I did it** HLD: [sonic-net/SONiC#1943](sonic-net/SONiC#1943) **How I verified it** Verified with test_copp.py DVS test Verified on Sonic switch with and without neighbor_miss trap support by vendorSAI. **Details if related** PR Dependencies: - Depends on: sonic-net/sonic-swss-common#1010 - Depends on: sonic-net/sonic-sairedis#1586 Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com>
mssonicbld
added a commit
to mssonicbld/sonic-swss.msft
that referenced
this pull request
Aug 20, 2025
**What I did** - Added neighbor_miss trap type support - enum capability query for hostif trap type in copporch.cpp - Added hw_status field to COPP_TRAP_TABLE table in state_db **Why I did it** HLD: [sonic-net/SONiC#1943](sonic-net/SONiC#1943) **How I verified it** Verified with test_copp.py DVS test Verified on Sonic switch with and without neighbor_miss trap support by vendorSAI. **Details if related** PR Dependencies: - Depends on: sonic-net/sonic-swss-common#1010 - Depends on: sonic-net/sonic-sairedis#1586 Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com>
mssonicbld
added a commit
to Azure/sonic-swss.msft
that referenced
this pull request
Aug 20, 2025
**What I did** - Added neighbor_miss trap type support - enum capability query for hostif trap type in copporch.cpp - Added hw_status field to COPP_TRAP_TABLE table in state_db **Why I did it** HLD: [sonic-net/SONiC#1943](sonic-net/SONiC#1943) **How I verified it** Verified with test_copp.py DVS test Verified on Sonic switch with and without neighbor_miss trap support by vendorSAI. **Details if related** PR Dependencies: - Depends on: sonic-net/sonic-swss-common#1010 - Depends on: sonic-net/sonic-sairedis#1586 Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What I did
vslib support for hostif trap object - SAI_OBJECT_TYPE_HOSTIF_TRAP,
attribute - SAI_HOSTIF_TRAP_ATTR_TRAP_TYPE
Implementation returns all trap types as supported.
Why I did
Details in HLD: sonic-net/SONiC#1943
How I verified it
Verified with UT and DVS
Signed-off-by: Ravi Minnikanti rminnikanti@marvell.com