patch 'net/mlx5: fix port down in link detection failure' has been queued to stable release 25.11.1
Kevin Traynor
ktraynor at redhat.com
Thu Feb 26 14:09:58 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.1
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/02/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/31438b0bfbfb093a62c142fcea590ae4c43a3aad
Thanks.
Kevin
---
>From 31438b0bfbfb093a62c142fcea590ae4c43a3aad 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 adfe0d06ce..89dd37bdf4 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1827,4 +1827,5 @@ 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>
diff --git a/drivers/net/mlx5/linux/mlx5_ethdev_os.c b/drivers/net/mlx5/linux/mlx5_ethdev_os.c
index 50997c187c..18819a4a0f 100644
--- a/drivers/net/mlx5/linux/mlx5_ethdev_os.c
+++ b/drivers/net/mlx5/linux/mlx5_ethdev_os.c
@@ -534,4 +534,5 @@ mlx5_link_update(struct rte_eth_dev *dev, int wait_to_complete)
}
} else if (ret < 0) {
+ memset(&dev->data->dev_link, 0, sizeof(dev->data->dev_link));
return ret;
}
--
2.53.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-02-26 10:16:51.597130409 +0000
+++ 0116-net-mlx5-fix-port-down-in-link-detection-failure.patch 2026-02-26 10:16:47.145460085 +0000
@@ -1 +1 @@
-From 85182f9006c3f26ba6c61148110565ae3e655573 Mon Sep 17 00:00:00 2001
+From 31438b0bfbfb093a62c142fcea590ae4c43a3aad 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 adfe0d06ce..89dd37bdf4 100644
@@ -26 +27 @@
-@@ -1829,4 +1829,5 @@ Yan Lu <luyan at cmss.chinamobile.com>
+@@ -1827,4 +1827,5 @@ Yan Lu <luyan at cmss.chinamobile.com>
More information about the stable
mailing list