patch 'net/mlx5: fix port down in link detection failure' has been queued to stable release 24.11.5
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Fri Feb 20 15:56:31 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.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 02/22/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/e15ef7dd9e31f3d69e271b6e40511f5bc7d893a9
Thanks.
Luca Boccassi
---
>From e15ef7dd9e31f3d69e271b6e40511f5bc7d893a9 Mon Sep 17 00:00:00 2001
From: Yang Xu <xu.yang3 at zte.com.cn>
Date: Wed, 26 Nov 2025 13:09:48 +0800
Subject: [PATCH] net/mlx5: fix port down in link detection failure
[ upstream commit 85182f9006c3f26ba6c61148110565ae3e655573 ]
The port down state was not initialized in the error branch of link
detection when MLX NIC link status update failed (ret < 0).
This resulted in incorrect link state reporting, as the device
retained stale link status instead of reflecting the actual down
state under error conditions.
Fixes: 1256805dd54d ("net/mlx5: move Linux-specific functions")
Signed-off-by: Yang Xu <xu.yang3 at zte.com.cn>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
---
.mailmap | 5 +++++
drivers/net/mlx5/linux/mlx5_ethdev_os.c | 1 +
2 files changed, 6 insertions(+)
diff --git a/.mailmap b/.mailmap
index 5c569d7e19..992e96ca72 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1748,6 +1748,11 @@ Xutao Sun <xutao.sun at intel.com>
Yaacov Hazan <yaacovh at mellanox.com>
Yahui Cao <yahui.cao at intel.com>
Yajun Wu <yajunw at nvidia.com>
+Yan Lu <luyan at cmss.chinamobile.com>
+Yan Xia <yanx.xia at intel.com>
+Yang Ming <mosesyyoung at gmail.com> <ming.1.yang at nokia-sbell.com>
+Yang Xu <xu.yang3 at zte.com.cn>
+Yang Zhang <zy107165 at alibaba-inc.com>
Yangchao Zhou <zhouyates at gmail.com>
Yanglong Wu <yanglong.wu at intel.com>
Yang Ming <ming.1.yang at nokia-sbell.com>
diff --git a/drivers/net/mlx5/linux/mlx5_ethdev_os.c b/drivers/net/mlx5/linux/mlx5_ethdev_os.c
index 5235066e35..954c35ae06 100644
--- a/drivers/net/mlx5/linux/mlx5_ethdev_os.c
+++ b/drivers/net/mlx5/linux/mlx5_ethdev_os.c
@@ -532,6 +532,7 @@ mlx5_link_update(struct rte_eth_dev *dev, int wait_to_complete)
return -rte_errno;
}
} else if (ret < 0) {
+ memset(&dev->data->dev_link, 0, sizeof(dev->data->dev_link));
return ret;
}
} while (wait_to_complete || retry-- > 0);
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-02-20 14:55:46.638166685 +0000
+++ 0089-net-mlx5-fix-port-down-in-link-detection-failure.patch 2026-02-20 14:55:43.328193177 +0000
@@ -1 +1 @@
-From 85182f9006c3f26ba6c61148110565ae3e655573 Mon Sep 17 00:00:00 2001
+From e15ef7dd9e31f3d69e271b6e40511f5bc7d893a9 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 85182f9006c3f26ba6c61148110565ae3e655573 ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -18 +19 @@
- .mailmap | 1 +
+ .mailmap | 5 +++++
@@ -20 +21 @@
- 2 files changed, 2 insertions(+)
+ 2 files changed, 6 insertions(+)
@@ -23 +24 @@
-index 749440793d..8bbfcc1703 100644
+index 5c569d7e19..992e96ca72 100644
@@ -26,4 +27,7 @@
-@@ -1828,6 +1828,7 @@ Yajun Wu <yajunw at nvidia.com>
- Yan Lu <luyan at cmss.chinamobile.com>
- Yan Xia <yanx.xia at intel.com>
- Yang Ming <mosesyyoung at gmail.com> <ming.1.yang at nokia-sbell.com>
+@@ -1748,6 +1748,11 @@ Xutao Sun <xutao.sun at intel.com>
+ Yaacov Hazan <yaacovh at mellanox.com>
+ Yahui Cao <yahui.cao at intel.com>
+ Yajun Wu <yajunw at nvidia.com>
++Yan Lu <luyan at cmss.chinamobile.com>
++Yan Xia <yanx.xia at intel.com>
++Yang Ming <mosesyyoung at gmail.com> <ming.1.yang at nokia-sbell.com>
@@ -31 +35 @@
- Yang Zhang <zy107165 at alibaba-inc.com>
++Yang Zhang <zy107165 at alibaba-inc.com>
@@ -33,0 +38 @@
+ Yang Ming <ming.1.yang at nokia-sbell.com>
@@ -35 +40 @@
-index 50997c187c..18819a4a0f 100644
+index 5235066e35..954c35ae06 100644
@@ -38 +43 @@
-@@ -533,6 +533,7 @@ mlx5_link_update(struct rte_eth_dev *dev, int wait_to_complete)
+@@ -532,6 +532,7 @@ mlx5_link_update(struct rte_eth_dev *dev, int wait_to_complete)
More information about the stable
mailing list