patch 'net/txgbe: align link capabilities and DAC classification' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:04:39 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/1f46f370f9818e38984c30e7f132089245b384a0
Thanks.
Kevin
---
>From 1f46f370f9818e38984c30e7f132089245b384a0 Mon Sep 17 00:00:00 2001
From: Zaiyu Wang <zaiyuwang at trustnetic.com>
Date: Wed, 28 Oct 2026 18:34:04 +0800
Subject: [PATCH] net/txgbe: align link capabilities and DAC classification
[ upstream commit 6205089cd58e9706dd456c5bb4dcda8896638b0c ]
A 10G active-limiting DAC on an Amber-Lite 25G NIC has no
fiber_suppport_speed value, so the capability path rejects it. A
10G-only passive DAC can also retain a stale 25G bit after hot-plug.
DACs and optical modules are additionally treated differently in the
FFE, CTLE and capability-report paths.
Rework the AML40/AML link capabilities and DAC classification:
- Use the detected DAC speed in the capability paths. Assign 10G for
passive 10G-only and active-limiting DACs instead of preserving a
speed value left by the previously installed module.
- Keep the bp_auto devarg unchanged when a 10G-only DAC disables AN.
The XPCS AN gate queries the current link capabilities, so a
subsequently hot-plugged AN-capable DAC is re-evaluated and can
enable AN73 again.
- Add the 40G-active transceiver identification (sfp_type enum and
identify branch). 40G active cables are handled through the optical
path, as SFF-8636 byte 131 bit 0 ("40G Active Cable") also covers
active optical cables.
- Unify DAC classification on txgbe_is_dac_cable(), including the
40G FFE selection in txgbe_e56_tx_ffe_cfg() which still open-coded
the qsfp_type_40g_cu check; the 10G active cable type (da_act_lmt)
is no longer treated as an optical module.
Fixes: fb6eb170dfa2 ("net/txgbe: add basic link configuration for Amber-Lite")
Signed-off-by: Zaiyu Wang <zaiyuwang at trustnetic.com>
---
drivers/net/txgbe/base/txgbe_aml.c | 4 +---
drivers/net/txgbe/base/txgbe_aml40.c | 33 +++++++++++++++++-----------
drivers/net/txgbe/base/txgbe_e56.c | 9 +++-----
drivers/net/txgbe/base/txgbe_phy.c | 23 +++++++++++++++++--
drivers/net/txgbe/base/txgbe_phy.h | 1 +
drivers/net/txgbe/base/txgbe_type.h | 2 ++
6 files changed, 48 insertions(+), 24 deletions(-)
diff --git a/drivers/net/txgbe/base/txgbe_aml.c b/drivers/net/txgbe/base/txgbe_aml.c
index de4db31cf8..8ee4c1264c 100644
--- a/drivers/net/txgbe/base/txgbe_aml.c
+++ b/drivers/net/txgbe/base/txgbe_aml.c
@@ -104,9 +104,7 @@ s32 txgbe_get_link_capabilities_aml(struct txgbe_hw *hw,
TXGBE_LINK_SPEED_25GB_FULL;
*autoneg = true;
- } else if (hw->phy.sfp_type == txgbe_sfp_type_da_cu_core0 ||
- hw->phy.sfp_type == txgbe_sfp_type_da_cu_core1) {
+ } else if (txgbe_is_dac_cable(hw)) {
if (hw->phy.fiber_suppport_speed ==
TXGBE_LINK_SPEED_10GB_FULL) {
- hw->devarg.auto_neg = false;
*autoneg = false;
} else {
diff --git a/drivers/net/txgbe/base/txgbe_aml40.c b/drivers/net/txgbe/base/txgbe_aml40.c
index fc8b92e976..a415c8f4a2 100644
--- a/drivers/net/txgbe/base/txgbe_aml40.c
+++ b/drivers/net/txgbe/base/txgbe_aml40.c
@@ -100,21 +100,28 @@ s32 txgbe_get_link_capabilities_aml40(struct txgbe_hw *hw,
bool *autoneg)
{
- if (hw->phy.sfp_type == txgbe_qsfp_type_40g_cu_core0 ||
- hw->phy.sfp_type == txgbe_qsfp_type_40g_cu_core1) {
+ /* Backplane */
+ if (txgbe_is_backplane(hw)) {
+ *speed = TXGBE_LINK_SPEED_10GB_FULL |
+ TXGBE_LINK_SPEED_40GB_FULL;
+ /* Backplane supports autonegotiation */
+ *autoneg = hw->devarg.auto_neg;
+ return 0;
+ }
+
+ /* Fiber or DAC cable */
+ if (txgbe_is_dac_cable(hw)) {
+ if (hw->phy.fiber_suppport_speed ==
+ TXGBE_LINK_SPEED_10GB_FULL) {
+ *autoneg = false;
+ } else {
+ *autoneg = hw->devarg.auto_neg;
+ }
*speed = hw->phy.fiber_suppport_speed;
- *autoneg = hw->devarg.auto_neg;
- } else if (txgbe_is_backplane(hw)) {
- *speed = TXGBE_LINK_SPEED_40GB_FULL |
- TXGBE_LINK_SPEED_10GB_FULL;
- *autoneg = hw->devarg.auto_neg;
} else {
- /*
- * Temporary workaround: set speed to 40G even if sfp not present
- * to avoid TXGBE_ERR_LINK_SETUP returned by setup_mac_link, but
- * a more reasonable solution is don't execute setup_mac_link when
- * sfp module not present.
+ /* Unknown module: report 40G so setup_mac_link() does not
+ * fail with TXGBE_ERR_LINK_SETUP.
*/
*speed = TXGBE_LINK_SPEED_40GB_FULL;
- *autoneg = true;
+ *autoneg = false;
}
diff --git a/drivers/net/txgbe/base/txgbe_e56.c b/drivers/net/txgbe/base/txgbe_e56.c
index 279c9740c1..f966faf56b 100644
--- a/drivers/net/txgbe/base/txgbe_e56.c
+++ b/drivers/net/txgbe/base/txgbe_e56.c
@@ -74,6 +74,5 @@ u32 txgbe_e56_tx_ffe_cfg(struct txgbe_hw *hw, u32 speed)
post = S10G_TX_FFE_CFG_POST;
} else if (speed == TXGBE_LINK_SPEED_25GB_FULL) {
- if (hw->phy.sfp_type == txgbe_sfp_type_da_cu_core0 ||
- hw->phy.sfp_type == txgbe_sfp_type_da_cu_core1 ||
+ if (txgbe_is_dac_cable(hw) ||
txgbe_is_backplane(hw)) {
ffe_main = S25G_TX_FFE_CFG_DAC_MAIN;
@@ -93,6 +92,5 @@ u32 txgbe_e56_tx_ffe_cfg(struct txgbe_hw *hw, u32 speed)
post = S10G_TX_FFE_CFG_POST;
- if (hw->phy.sfp_type == txgbe_qsfp_type_40g_cu_core0 ||
- hw->phy.sfp_type == txgbe_qsfp_type_40g_cu_core1 ||
+ if (txgbe_is_dac_cable(hw) ||
txgbe_is_backplane(hw)) {
ffe_main = S40G_TX_FFE_CFG_MAIN;
@@ -2623,6 +2621,5 @@ txgbe_e56_rxs_calib_adapt_seq(struct txgbe_hw *hw, u32 speed)
bool bypass_ctle = true;
- if (hw->phy.sfp_type == txgbe_sfp_type_da_cu_core0 ||
- hw->phy.sfp_type == txgbe_sfp_type_da_cu_core1)
+ if (txgbe_is_dac_cable(hw))
bypass_ctle = 0;
diff --git a/drivers/net/txgbe/base/txgbe_phy.c b/drivers/net/txgbe/base/txgbe_phy.c
index decfcbadd6..896fe7eecf 100644
--- a/drivers/net/txgbe/base/txgbe_phy.c
+++ b/drivers/net/txgbe/base/txgbe_phy.c
@@ -918,5 +918,5 @@ ERR_I2C:
TXGBE_LINK_SPEED_10GB_FULL;
} else {
- hw->phy.fiber_suppport_speed |=
+ hw->phy.fiber_suppport_speed =
TXGBE_LINK_SPEED_10GB_FULL;
}
@@ -939,4 +939,6 @@ ERR_I2C:
? txgbe_sfp_type_da_act_lmt_core0
: txgbe_sfp_type_da_act_lmt_core1);
+ hw->phy.fiber_suppport_speed =
+ TXGBE_LINK_SPEED_10GB_FULL;
} else {
hw->phy.sfp_type = txgbe_sfp_type_unknown;
@@ -1159,4 +1161,11 @@ s32 txgbe_identify_qsfp_module(struct txgbe_hw *hw)
hw->phy.sfp_type = txgbe_qsfp_type_40g_lr_core1;
}
+
+ if (transceiver_type & TXGBE_SFF_ETHERNET_40G_ACTIVE) {
+ if (hw->bus.lan_id == 0)
+ hw->phy.sfp_type = txgbe_qsfp_type_40g_active_core0;
+ else
+ hw->phy.sfp_type = txgbe_qsfp_type_40g_active_core1;
+ }
}
@@ -2431,8 +2440,18 @@ int txgbe_is_dac_cable(struct txgbe_hw *hw)
int txgbe_xpcs_an_enabled(struct txgbe_hw *hw)
{
+ u32 speed;
+ bool autoneg;
+
if (!(txgbe_is_dac_cable(hw) || txgbe_is_backplane(hw)))
return false;
- return hw->devarg.auto_neg ? true : false;
+ if (!hw->devarg.auto_neg)
+ return false;
+
+ /* Re-evaluate AN support for the currently detected module. */
+ if (hw->mac.get_link_capabilities(hw, &speed, &autoneg) != 0)
+ return false;
+
+ return autoneg;
}
diff --git a/drivers/net/txgbe/base/txgbe_phy.h b/drivers/net/txgbe/base/txgbe_phy.h
index a5df015a4d..b00f00931c 100644
--- a/drivers/net/txgbe/base/txgbe_phy.h
+++ b/drivers/net/txgbe/base/txgbe_phy.h
@@ -311,4 +311,5 @@
#define TXGBE_SFF_ETHERNET_40G_SR4 MS(2, 0x1)
#define TXGBE_SFF_ETHERNET_40G_LR4 MS(1, 0x1)
+#define TXGBE_SFF_ETHERNET_40G_ACTIVE MS(0, 0x1)
#define TXGBE_SFF_SOFT_RS_SELECT_MASK 0x8
diff --git a/drivers/net/txgbe/base/txgbe_type.h b/drivers/net/txgbe/base/txgbe_type.h
index 6043a6bf6f..c41ae9bbd8 100644
--- a/drivers/net/txgbe/base/txgbe_type.h
+++ b/drivers/net/txgbe/base/txgbe_type.h
@@ -249,4 +249,6 @@ enum txgbe_sfp_type {
txgbe_qsfp_type_40g_lr_core0,
txgbe_qsfp_type_40g_lr_core1,
+ txgbe_qsfp_type_40g_active_core0,
+ txgbe_qsfp_type_40g_active_core1,
txgbe_sfp_type_not_present = 0xFFFE,
txgbe_sfp_type_not_known = 0xFFFF
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:49.186725211 +0000
+++ 0353-net-txgbe-align-link-capabilities-and-DAC-classifica.patch 2026-12-03 12:52:39.272938768 +0000
@@ -1 +1 @@
-From 6205089cd58e9706dd456c5bb4dcda8896638b0c Mon Sep 17 00:00:00 2001
+From 1f46f370f9818e38984c30e7f132089245b384a0 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 6205089cd58e9706dd456c5bb4dcda8896638b0c ]
+
@@ -31 +32,0 @@
-Cc: stable at dpdk.org
@@ -105 +106 @@
-index 4ba69ed4df..c671dfdcc2 100644
+index 279c9740c1..f966faf56b 100644
@@ -183 +184 @@
-index a06c0eb04e..552fedadab 100644
+index a5df015a4d..b00f00931c 100644
@@ -186 +187 @@
-@@ -317,4 +317,5 @@
+@@ -311,4 +311,5 @@
@@ -193 +194 @@
-index d65a50530f..b030275141 100644
+index 6043a6bf6f..c41ae9bbd8 100644
@@ -196 +197 @@
-@@ -250,4 +250,6 @@ enum txgbe_sfp_type {
+@@ -249,4 +249,6 @@ enum txgbe_sfp_type {
More information about the stable
mailing list