Conversation
Signed-off-by: AkeelAli <701916+AkeelAli@users.noreply.github.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Collaborator
|
/azp run |
github-actions
Bot
requested review from
theasianpianist,
vaibhavhd and
xwjiang-ms
September 8, 2026 21:00
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
nhegde-microsoft
approved these changes
Sep 8, 2026
Contributor
Author
|
@lolyu @nhegde-microsoft how do we want to proceed here? Adding VPP to acl_l2 skips the RX_DRP check in If not, we would go with sonic-net/sonic-platform-vpp#280 and have the standby report no RX_DRP. I would use this current PR to simply fix the |
yue-fred-gao
approved these changes
Sep 9, 2026
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.
Description of PR
Summary:
Fixes a latent integer-parsing bug in the drop-counter test helpers that caused ensure_no_l2_drops / ensure_no_l3_drops to silently skip any interface whose RX_DRP / RX_ERR reached the thousands (comma-formatted by portstat -j / intfstat -j). Because PKT_NUMBER = 1000, these checks have effectively been no-ops at the exact packet count they validate. Also declares VPP (x86_64-kvm_x86_64-r0) as an ACL/L2 combined-counter platform, since VPP charges ACL denies to the interface drop counter (RX_DRP).
Type of change
Back port request
Tracking issue/work item for backport/cherry-pick request (GitHub issue or Microsoft ADO):
Failure type:
Tested branch
Test result
Previously, this failure resulted in a warning log:
With this change, the check is skipped for sonic-vpp and only the ACL check remains.
Approach
What is the motivation for this PR?
ensure_no_l2_drops / ensure_no_l3_drops parse counters with int(value[RX_DRP]), but portstat -j formats values >= 1000 as "1,000". At PKT_NUMBER=1000 the int() call throws, the interface is skipped, and the check silently passes. On VPP this hid that ACL denies increment RX_DRP.
How did you do it?
Strip commas before int() (as verify_drop_counters already does), and add VPP (x86_64-kvm_x86_64-r0) to the acl_l2 list.
How did you verify/test it?
On VPP t1-lag: with only the comma fix, test_acl_drop and test_acl_egress_drop flip to FAILED (RX_DRP ~1000); with the acl_l2 entry added, they pass legitimately while the per-ACE counter check still runs.
Any platform specific information?
Supported testbed topology if it's a new test case?
N/A - existing tests, validated on t1-lag.
Documentation