Skip to content

Support for sonic-mgmt ACL testing on VPP#1599

Merged
yue-fred-gao merged 6 commits intosonic-net:masterfrom
AkeelAli:acl_sonic_mgmt
Dec 9, 2025
Merged

Support for sonic-mgmt ACL testing on VPP#1599
yue-fred-gao merged 6 commits intosonic-net:masterfrom
AkeelAli:acl_sonic_mgmt

Conversation

@AkeelAli
Copy link
Contributor

Changes in VPP's SAI ACL code to successfully run sonic-mgmt ACL testing on Sonic-VPP.

Related PRs:
Sonic-mgmt changes: sonic-net/sonic-mgmt#18313
Sonic-VPP changes: sonic-net/sonic-platform-vpp#178

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kcudnik
Copy link
Collaborator

kcudnik commented Jun 12, 2025

there are no unittests for this code

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yue-fred-gao
Copy link
Contributor

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yue-fred-gao
Copy link
Contributor

/azpw run Azure.sonic-sairedis (BuildAsan amd64)

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-sairedis (BuildAsan amd64)

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yue-fred-gao yue-fred-gao merged commit b70dfa7 into sonic-net:master Dec 9, 2025
16 checks passed
vikram-nexthop pushed a commit to nexthop-ai/sonic-sairedis that referenced this pull request Dec 12, 2025
* Enabling sonic-mgmt ACL testing for Sonic-VPP

* Use retval in debugs

Signed-off-by: Vikram Menon <vikram@nexthop.ai>
croos12 pushed a commit to croos12/sonic-sairedis that referenced this pull request Dec 14, 2025
* Enabling sonic-mgmt ACL testing for Sonic-VPP

* Use retval in debugs
croos12 pushed a commit to croos12/sonic-sairedis that referenced this pull request Jan 14, 2026
* Enabling sonic-mgmt ACL testing for Sonic-VPP

* Use retval in debugs
yue-fred-gao pushed a commit to yue-fred-gao/sonic-sairedis that referenced this pull request Mar 3, 2026
* Enabling sonic-mgmt ACL testing for Sonic-VPP

* Use retval in debugs
yue-fred-gao pushed a commit that referenced this pull request Mar 3, 2026
* Enabling sonic-mgmt ACL testing for Sonic-VPP

* Use retval in debugs

Signed-off-by: Yue Gao <yuega2@cisco.com>
vmittal-msft pushed a commit that referenced this pull request Mar 9, 2026
* Support for sonic-mgmt ACL testing on VPP (#1599)

* Enabling sonic-mgmt ACL testing for Sonic-VPP

* Use retval in debugs

* Graceful shutdown vpp to avoid core dump (#1714)

Signed-off-by: Yue Gao <yuega2@cisco.com>

* vpp: support ACL attached to LAG and UDP in ACE (#1718)

* Handle acl attachment through LAG update
* Add default permit-all rules
* Support ACL with UDP protocol
* if protocol is not specified but port or port-range is
   create 2 rules with proto UDP and TCP. vpp requires proto
   to be set if port or port-range is used
* realign ace stats index because each ace can map to multiple acl rules

Signed-off-by: Yue Gao <yuega2@cisco.com>

* vpp: support binding multiple ACL tables by priority (#1732)

why
currently vpp doesn't support binding multiple ACL tables. Each table is appended with default permit-all rules. With multiple tables, this may cause acl matched by such rules and skip the actual rule to make in the tables after this one.

what this PR does
remove the default permit-all rules for each table
If a table is empty, create a dummy rule that won't match any traffic because vpp doesn't allow empty table. The dummy rule matches dest-ip to 0.0.0.0/32
sort all the tables by priority in the table group. vpp doesn't support parallel matching
added catch-all acl group to the end. vpp default behavior of no match is drop but sonic is accept.
Fix sonic-vpp crashing due to race condition during stats pull. If the interface to get stats has been removed, stat_segment_ls_r returns null.

Signed-off-by: Yue Gao <yuega2@cisco.com>

* changes for vpp release 202510

---------

Signed-off-by: Yue Gao <yuega2@cisco.com>
Co-authored-by: AkeelAli <701916+AkeelAli@users.noreply.github.com>
Co-authored-by: Mihut Aronovici <aronovic@cisco.com>
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