patch 'fib6: fix error code propagation on next hop update' has been queued to stable release 24.11.7

luca.boccassi at gmail.com luca.boccassi at gmail.com
Thu Jun 11 15:20:41 CEST 2026


Hi,

FYI, your patch has been queued to stable release 24.11.7

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 06/13/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/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/4119ace26e091008ae99b14d5ede2ac9c7718d7e

Thanks.

Luca Boccassi

---
>From 4119ace26e091008ae99b14d5ede2ac9c7718d7e Mon Sep 17 00:00:00 2001
From: Vladimir Medvedkin <vladimir.medvedkin at intel.com>
Date: Fri, 5 Jun 2026 16:47:57 +0000
Subject: [PATCH] fib6: fix error code propagation on next hop update

[ upstream commit 3aca5f52b511aaa74b74f560738ec24fa4286d2d ]

When updating the next hop of an existing prefix, trie_modify() ignored
the return value of modify_dp() and always returned 0.  An out-of-range
next hop is rejected by modify_dp() with -EINVAL but was reported to
the caller as success. Return the actual result.

Fixes: c3e12e0f0354 ("fib: add dataplane algorithm for IPv6")

Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>
---
 lib/fib/trie.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/fib/trie.c b/lib/fib/trie.c
index dc7baa1e9f..29ca8e3bf7 100644
--- a/lib/fib/trie.c
+++ b/lib/fib/trie.c
@@ -572,7 +572,8 @@ trie_modify(struct rte_fib6 *fib, const struct rte_ipv6_addr *ip,
 			ret = modify_dp(dp, rib, &ip_masked, depth, next_hop);
 			if (ret == 0)
 				rte_rib6_set_nh(node, next_hop);
-			return 0;
+
+			return ret;
 		}
 
 		if ((depth > 24) && (dp->rsvd_tbl8s + depth_diff > dp->number_tbl8s))
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-06-11 14:20:04.953691302 +0100
+++ 0092-fib6-fix-error-code-propagation-on-next-hop-update.patch	2026-06-11 14:20:01.338748996 +0100
@@ -1 +1 @@
-From 3aca5f52b511aaa74b74f560738ec24fa4286d2d Mon Sep 17 00:00:00 2001
+From 4119ace26e091008ae99b14d5ede2ac9c7718d7e Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 3aca5f52b511aaa74b74f560738ec24fa4286d2d ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index fa5d9ec6b0..99272f45bd 100644
+index dc7baa1e9f..29ca8e3bf7 100644
@@ -23 +24 @@
-@@ -600,7 +600,8 @@ trie_modify(struct rte_fib6 *fib, const struct rte_ipv6_addr *ip,
+@@ -572,7 +572,8 @@ trie_modify(struct rte_fib6 *fib, const struct rte_ipv6_addr *ip,


More information about the stable mailing list