patch 'fib: use scalar lookup for network byte order on RISC-V' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:02:31 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.11.5

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/bdda46cbcc0e71e947c942f67f0d24658e81cee8

Thanks.

Kevin

---
>From bdda46cbcc0e71e947c942f67f0d24658e81cee8 Mon Sep 17 00:00:00 2001
From: Sun Yuechi <sunyuechi at iscas.ac.cn>
Date: Mon, 5 Oct 2026 00:04:45 -0700
Subject: [PATCH] fib: use scalar lookup for network byte order on RISC-V

[ upstream commit d86c606fe341507071701c16fd56f92db8feca70 ]

A FIB created with RTE_FIB_F_LOOKUP_NETWORK_ORDER was given the vector
lookup, which reads the addresses in host order. Leave such a FIB to
the scalar functions.

Fixes: f2ccf5fc334b ("fib: lookup with RISC-V vector extension")

Signed-off-by: Sun Yuechi <sunyuechi at iscas.ac.cn>
---
 lib/fib/dir24_8.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/fib/dir24_8.c b/lib/fib/dir24_8.c
index 489d2ef427..c135285a65 100644
--- a/lib/fib/dir24_8.c
+++ b/lib/fib/dir24_8.c
@@ -95,6 +95,6 @@ get_vector_fn(enum rte_fib_dir24_8_nh_sz nh_sz, bool be_addr)
 	}
 #elif defined(RTE_RISCV_FEATURE_V)
-	RTE_SET_USED(be_addr);
-	if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_RISCV_ISA_V) <= 0)
+	/* the vector functions take addresses in host order only */
+	if (be_addr || rte_cpu_get_flag_enabled(RTE_CPUFLAG_RISCV_ISA_V) <= 0)
 		return NULL;
 	switch (nh_sz) {
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:45.643439179 +0000
+++ 0225-fib-use-scalar-lookup-for-network-byte-order-on-RISC.patch	2026-12-03 12:52:39.190887018 +0000
@@ -1 +1 @@
-From d86c606fe341507071701c16fd56f92db8feca70 Mon Sep 17 00:00:00 2001
+From bdda46cbcc0e71e947c942f67f0d24658e81cee8 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit d86c606fe341507071701c16fd56f92db8feca70 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list