From: Sun Yuechi <sunyuechi@iscas.ac.cn>
To: Bruce Richardson <bruce.richardson@intel.com>,
Vladimir Medvedkin <vladimir.medvedkin@intel.com>
Cc: dev@dpdk.org, Sun Yuechi <sunyuechi@iscas.ac.cn>
Subject: [PATCH 0/2] lpm: use scalar lookupx4 on RISC-V
Date: Sun, 4 Oct 2026 23:30:16 -0700 [thread overview]
Message-ID: <cover.1791181595.git.sunyuechi@iscas.ac.cn> (raw)
The RVV rte_lpm_lookupx4() beats the scalar version only on in-order
cores, and only because it reads the four tbl24 entries up front.
Patch 1 makes the scalar version do the same, patch 2 removes the RVV
version.
lpm_perf_autotest, LookupX4, units differ per machine:
SpacemiT X60 Sophgo SG2044 SpacemiT X100
(in-order) (out-of-order) (out-of-order)
rv64gc rv64gcv rv64gc rva23u64 rv64gc rva23u64
main 5.5 4.4 (RVV) 2.7 3.2 (RVV) 35.2 54.3 (RVV)
patched 2.5 2.7-3.2 2.7 2.9 34.6 41.3
Sun Yuechi (2):
lpm: load tbl24 entries up front in scalar lookupx4
lpm: use scalar lookupx4 on RISC-V
lib/lpm/meson.build | 1 -
lib/lpm/rte_lpm.h | 2 --
lib/lpm/rte_lpm_rvv.h | 59 ----------------------------------------
lib/lpm/rte_lpm_scalar.h | 40 +++++++++++++++++++--------
4 files changed, 29 insertions(+), 73 deletions(-)
delete mode 100644 lib/lpm/rte_lpm_rvv.h
--
2.56.0
next reply other threads:[~2026-10-05 6:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-05 6:30 Sun Yuechi [this message]
2026-10-05 6:30 ` [PATCH 1/2] lpm: load tbl24 entries up front in scalar lookupx4 Sun Yuechi
2026-10-05 6:30 ` [PATCH 2/2] lpm: use scalar lookupx4 on RISC-V Sun Yuechi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1791181595.git.sunyuechi@iscas.ac.cn \
--to=sunyuechi@iscas.ac.cn \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=vladimir.medvedkin@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox