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

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

Thanks.

Kevin

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

[ upstream commit 8065eebd098b0aced2c17ed49c3b87a07e00df51 ]

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 i40e_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 an earlier error 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>
---
 .mailmap                             |  1 +
 drivers/net/intel/i40e/i40e_ethdev.c | 11 +++++++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/.mailmap b/.mailmap
index b1f5160887..40bc955a26 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1550,4 +1550,5 @@ Shy Shyman <shys at nvidia.com> <shys at mellanox.com>
 Shyam Kumar Shrivastav <shrivastav.shyam at gmail.com>
 Sibaranjan Pattnayak <spattnayak at marvell.com>
+Sid Ali Cherrati <scherrati1 at gmail.com>
 Siddaraju DH <siddaraju.dh at intel.com>
 Simei Su <simei.su at intel.com>
diff --git a/drivers/net/intel/i40e/i40e_ethdev.c b/drivers/net/intel/i40e/i40e_ethdev.c
index ae4388e574..ec95bc57c2 100644
--- a/drivers/net/intel/i40e/i40e_ethdev.c
+++ b/drivers/net/intel/i40e/i40e_ethdev.c
@@ -2762,12 +2762,15 @@ i40e_dev_close(struct rte_eth_dev *dev)
 
 	do {
-		ret = rte_intr_callback_unregister(intr_handle,
+		int cb_ret = rte_intr_callback_unregister(intr_handle,
 				i40e_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;
 		}
 		i40e_msec_delay(500);
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:41.864212654 +0000
+++ 0091-net-i40e-fix-close-return.patch	2026-12-03 12:52:39.082938616 +0000
@@ -1 +1 @@
-From 8065eebd098b0aced2c17ed49c3b87a07e00df51 Mon Sep 17 00:00:00 2001
+From 99cd32e9bc1cfd7d3440b2989b2820eb5519ac60 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 8065eebd098b0aced2c17ed49c3b87a07e00df51 ]
+
@@ -18 +19,0 @@
-Cc: stable at dpdk.org
@@ -28 +29 @@
-index edd0b03efd..2c2c12091e 100644
+index b1f5160887..40bc955a26 100644
@@ -31 +32 @@
-@@ -1571,4 +1571,5 @@ Shy Shyman <shys at nvidia.com> <shys at mellanox.com>
+@@ -1550,4 +1550,5 @@ Shy Shyman <shys at nvidia.com> <shys at mellanox.com>
@@ -38 +39 @@
-index 0d914d86ea..4282081e0d 100644
+index ae4388e574..ec95bc57c2 100644



More information about the stable mailing list