patch 'net/ixgbe: fix close return' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:00:18 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/ce39e982994d1796e71b56638783aab9af94dee7

Thanks.

Kevin

---
>From ce39e982994d1796e71b56638783aab9af94dee7 Mon Sep 17 00:00:00 2001
From: Sid Ali Cherrati <scherrati1 at gmail.com>
Date: Wed, 15 Jul 2026 14:48:16 +0200
Subject: [PATCH] net/ixgbe: fix close return

[ upstream commit 4cf8823d436b92fd342a59680a19b48006944cd7 ]

rte_intr_callback_unregister() returns the number of unregistered
callbacks on success. Since the close operation started returning
the ret variable instead of 0, this positive value leaks as the
return value of ixgbe_dev_close(), so applications checking
rte_eth_dev_close() != 0 treat a successful close as a failure.

Use a separate cb_ret variable for the unregister return value so a
successful unregister never clobbers the dev_stop() error already
stored in ret, and stop retrying once unregister fails with anything
other than -EAGAIN, since those errors are not transient.

Fixes: 62024eb82756 ("ethdev: change stop operation callback to return int")

Signed-off-by: Sid Ali Cherrati <scherrati1 at gmail.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
 drivers/net/intel/ixgbe/ixgbe_ethdev.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/drivers/net/intel/ixgbe/ixgbe_ethdev.c b/drivers/net/intel/ixgbe/ixgbe_ethdev.c
index fd7080e570..04ae64a65a 100644
--- a/drivers/net/intel/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/intel/ixgbe/ixgbe_ethdev.c
@@ -3116,12 +3116,15 @@ ixgbe_dev_close(struct rte_eth_dev *dev)
 
 	do {
-		ret = rte_intr_callback_unregister(intr_handle,
+		int cb_ret = rte_intr_callback_unregister(intr_handle,
 				ixgbe_dev_interrupt_handler, dev);
-		if (ret >= 0 || ret == -ENOENT) {
+		if (cb_ret >= 0 || cb_ret == -ENOENT) {
 			break;
-		} else if (ret != -EAGAIN) {
+		} else if (cb_ret != -EAGAIN) {
 			PMD_INIT_LOG(ERR,
 				"intr callback unregister failed: %d",
-				ret);
+				cb_ret);
+			if (ret == 0)
+				ret = cb_ret;
+			break;
 		}
 		rte_delay_ms(100);
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:41.895357625 +0000
+++ 0092-net-ixgbe-fix-close-return.patch	2026-12-03 12:52:39.084938618 +0000
@@ -1 +1 @@
-From 4cf8823d436b92fd342a59680a19b48006944cd7 Mon Sep 17 00:00:00 2001
+From ce39e982994d1796e71b56638783aab9af94dee7 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 4cf8823d436b92fd342a59680a19b48006944cd7 ]
+
@@ -18 +19,0 @@
-Cc: stable at dpdk.org
@@ -27 +28 @@
-index cbb7b4831c..8d089a8063 100644
+index fd7080e570..04ae64a65a 100644
@@ -30 +31 @@
-@@ -3025,12 +3025,15 @@ ixgbe_dev_close(struct rte_eth_dev *dev)
+@@ -3116,12 +3116,15 @@ ixgbe_dev_close(struct rte_eth_dev *dev)



More information about the stable mailing list