Skip to content

Comments

Add explicit config for creating acl counter#882

Closed
rgarofano-arista wants to merge 1 commit intoAzure:202412from
rgarofano-arista:fix-acl-rule-creation
Closed

Add explicit config for creating acl counter#882
rgarofano-arista wants to merge 1 commit intoAzure:202412from
rgarofano-arista:fix-acl-rule-creation

Conversation

@rgarofano-arista
Copy link

@rgarofano-arista rgarofano-arista commented Nov 20, 2025

Orchagent will create an acl counter by default when creating an acl rule. In the packet trimming test_acl_action_with_trimming testcase it is applying some json configuration to create an acl table with the disable trim action. Because there is no counter action in this configuration the Broadcom SAI (and possibly other SAI implementations) fails to create the acl counter resulting in no acl rules being applied to the newly created acl table. This fix explicitly adds the counter as an acl table action, which allows the SAI to create both the counter and the acl rules which we want to test.

@r12f
Copy link
Contributor

r12f commented Nov 21, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sdszhang
Copy link

@rgarofano-arista the PR checker issue has been fixed in sonic-net/sonic-mgmt#18348, pls rebase your PR to latest 202412.

Signed-off-by: Ryan Garofano <rgarofano@arista.com>
@r12f
Copy link
Contributor

r12f commented Dec 27, 2025

this change might be redundant - see discussion in the master branch PR.

202412 also has this change:

image

@kperumalbfn
Copy link

@rgarofano-arista Pls check https://github.com/sonic-net/sonic-swss/blob/98b9d353a11a51244adca5c7d21832e9824f4499/orchagent/aclorch.cpp#L2579 as Riff mentioned. Could you check if SAI capability query fails for ACL counter.

@r12f
Copy link
Contributor

r12f commented Feb 10, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@r12f
Copy link
Contributor

r12f commented Feb 16, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sdszhang
Copy link

sdszhang commented Feb 22, 2026

the auto cherry-pick is merged in #1029. I think we can close this PR as duplicated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants