Skip to content

lpm: use scalar lookupx4 on RISC-V

Sun Yuechi dpdk-dev 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2lpm: load tbl24 entries up front in scalar lookupx4lib/lpm/rte_lpm_scalar.h+29 -110 replies
2/2lpm: use scalar lookupx4 on RISC-Vlib/lpm/meson.build lib/lpm/rte_lpm.h lib/lpm/rte_lpm_rvv.h+0 -620 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] lpm: use scalar lookupx4 on RISC-V

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
Signature · 1 line
2.56.0