patch 'net/mlx5: fix port down in link detection failure' has been queued to stable release 23.11.7
Shani Peretz
shperetz at nvidia.com
Tue Mar 31 08:24:42 CEST 2026
Hi,
FYI, your patch has been queued to stable release 23.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 04/05/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/shanipr/dpdk-stable
This queued commit can be viewed at:
https://github.com/shanipr/dpdk-stable/commit/d2a8cf6e06600424160b8a5c5ac12b8e9a79c4b5
Thanks.
Shani
---
>From d2a8cf6e06600424160b8a5c5ac12b8e9a79c4b5 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 | 1 +
drivers/net/mlx5/linux/mlx5_ethdev_os.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/.mailmap b/.mailmap
index e7318f26f4..30b72846ad 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1659,6 +1659,7 @@ 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>
+Yang Xu <xu.yang3 at zte.com.cn>
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 a9a12c87dc..aebb3376ef 100644
--- a/drivers/net/mlx5/linux/mlx5_ethdev_os.c
+++ b/drivers/net/mlx5/linux/mlx5_ethdev_os.c
@@ -668,6 +668,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.43.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-03-31 00:32:36.636090832 +0300
+++ 0083-net-mlx5-fix-port-down-in-link-detection-failure.patch 2026-03-31 00:32:29.625258000 +0300
@@ -1 +1 @@
-From 85182f9006c3f26ba6c61148110565ae3e655573 Mon Sep 17 00:00:00 2001
+From d2a8cf6e06600424160b8a5c5ac12b8e9a79c4b5 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 85182f9006c3f26ba6c61148110565ae3e655573 ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
-index 749440793d..8bbfcc1703 100644
+index e7318f26f4..30b72846ad 100644
@@ -26,4 +27,4 @@
-@@ -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>
+@@ -1659,6 +1659,7 @@ 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>
@@ -31 +31,0 @@
- Yang Zhang <zy107165 at alibaba-inc.com>
@@ -33,0 +34 @@
+ Yang Ming <ming.1.yang at nokia-sbell.com>
@@ -35 +36 @@
-index 50997c187c..18819a4a0f 100644
+index a9a12c87dc..aebb3376ef 100644
@@ -38 +39 @@
-@@ -533,6 +533,7 @@ mlx5_link_update(struct rte_eth_dev *dev, int wait_to_complete)
+@@ -668,6 +668,7 @@ mlx5_link_update(struct rte_eth_dev *dev, int wait_to_complete)
More information about the stable
mailing list