fib: fix and speed up RVV lookup
Status from this message: Applied, thanks.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | fib: fix lookup in network order with RVVlib/ | +2 | 0 replies | |
| 2/2 | fib: gather entries at their own width with RVVlib/ | +47 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] fib: fix and speed up RVV lookup
Patch 1 fixes wrong next hops from a FIB created with RTE_FIB_F_LOOKUP_NETWORK_ORDER on RISC-V: the vector lookup read the addresses in host order.
Patch 2 removes a register spill from the vector lookup loop by gathering the entries at the width they are stored with.
Patch 2, ns per lookup, standalone benchmark, tables in cache, -O3:
1B 2B 4B 8B
SpacemiT X60
before 31.1 32.1 30.6 29.7
after 27.2 27.9 27.6 26.4
Sophgo SG2044
before 5.6 5.7 5.9 7.5
after 4.4 4.1 5.0 6.0
SpacemiT X100
before 4.7 4.8 4.8 5.9
after 4.1 4.2 4.3 5.1fib_perf_autotest, whose addresses miss the cache, gains 0 to 14%.
Sun Yuechi (2):
fib: fix lookup in network order with RVV
fib: gather entries at their own width with RVV
lib/fib/dir24_8.c | 4 +- lib/fib/dir24_8_rvv.c | 85 ++++++++++++++++++++++++------------------- 2 files changed, 49 insertions(+), 40 deletions(-)
Signature · 1 line
2.56.0