patch 'net/txgbe: fix link state in 10G forced mode' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:04:30 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/a724dd1ebb495897210ae3df34682eb924835042
Thanks.
Kevin
---
>From a724dd1ebb495897210ae3df34682eb924835042 Mon Sep 17 00:00:00 2001
From: Zaiyu Wang <zaiyuwang at trustnetic.com>
Date: Wed, 28 Oct 2026 18:33:53 +0800
Subject: [PATCH] net/txgbe: fix link state in 10G forced mode
[ upstream commit 1c147c7bca135986b12a170a6b5d04a41e40f328 ]
When an AML40 port is configured in 10G forced mode (auto_neg=0),
the hardware can link up but the driver keeps reporting link down
after a peer link failure: link_valid is cleared on timeout but
never restored when the peer recovers, so the link stays down until
the port is restarted.
Restore hw->link_valid = true in the success path of
txgbe_setup_phy_link_aml40(), symmetric to the 40G path. Handle
TXGBE_ERR_PHY_INIT_NOT_DONE before the timeout split and leave
link_valid untouched, matching the 25G path in
txgbe_setup_phy_link_aml(); the alarm retry then attempts the
setup again.
Fixes: f7cfc21e9f75 ("net/txgbe: fix link stability for 40G NIC")
Signed-off-by: Zaiyu Wang <zaiyuwang at trustnetic.com>
---
drivers/net/txgbe/base/txgbe_aml40.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/net/txgbe/base/txgbe_aml40.c b/drivers/net/txgbe/base/txgbe_aml40.c
index 7476759d4d..5fa7c6a243 100644
--- a/drivers/net/txgbe/base/txgbe_aml40.c
+++ b/drivers/net/txgbe/base/txgbe_aml40.c
@@ -203,7 +203,16 @@ s32 txgbe_setup_phy_link_aml40(struct txgbe_hw *hw,
rte_spinlock_lock(&hw->phy_lock);
ret_status = txgbe_set_link_to_amlite(hw, speed);
+ rte_spinlock_unlock(&hw->phy_lock);
+
+ /* The PHY did not come out of reset; leave link_valid alone and
+ * let the retry in the alarm handler attempt the setup again.
+ */
+ if (ret_status == TXGBE_ERR_PHY_INIT_NOT_DONE)
+ goto out;
+
if (ret_status == TXGBE_ERR_TIMEOUT)
hw->link_valid = false;
- rte_spinlock_unlock(&hw->phy_lock);
+ else
+ hw->link_valid = true;
for (i = 0; i < 4; i++) {
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:48.919916200 +0000
+++ 0344-net-txgbe-fix-link-state-in-10G-forced-mode.patch 2026-12-03 12:52:39.263190815 +0000
@@ -1 +1 @@
-From 1c147c7bca135986b12a170a6b5d04a41e40f328 Mon Sep 17 00:00:00 2001
+From a724dd1ebb495897210ae3df34682eb924835042 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 1c147c7bca135986b12a170a6b5d04a41e40f328 ]
+
@@ -20 +21,0 @@
-Cc: stable at dpdk.org
More information about the stable
mailing list