[PATCH 0/2] acl: avoid vector spills in the RVV search loops

Stephen Hemminger stephen at networkplumber.org
Sun Nov 1 21:57:13 CET 2026


The compiler is doing what we asked. Why workaround it.

On Sun, Nov 1, 2026, 9:04 AM Sun Yuechi <sunyuechi at iscas.ac.cn> wrote:

> At -O2 the ACL match checks are not inlined into the RVV search loops, so
> a vector value live across those calls is spilled and the remaining locals
> are addressed through vlenb.  -O3 inlines them already and is unchanged.
>
> Add __rte_flatten, and apply it to the two search functions.
>
> Sun Yuechi (2):
>   eal: add flatten function attribute
>   acl: inline the match checks into the RVV search loops
>
>  lib/acl/acl_run_rvv.h        |  8 +++++---
>  lib/eal/include/rte_common.h | 13 +++++++++++++
>  2 files changed, 18 insertions(+), 3 deletions(-)
>
> --
> 2.56.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20261101/f5076e09/attachment.htm>


More information about the dev mailing list