patch 'net/txgbe: fix 40G FFE tuning applied to first lane only' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:04:37 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/603a1c484d6e3ae1ac4c801104a00de987db276f
Thanks.
Kevin
---
>From 603a1c484d6e3ae1ac4c801104a00de987db276f Mon Sep 17 00:00:00 2001
From: Zaiyu Wang <zaiyuwang at trustnetic.com>
Date: Wed, 28 Oct 2026 18:34:00 +0800
Subject: [PATCH] net/txgbe: fix 40G FFE tuning applied to first lane only
[ upstream commit ae5dfbbe90082d491cc2fccf138aba2b401398f1 ]
On the 40G NIC, an FFE value only reaches the first of the four
lanes: the E56 PHY holds one FFE byte per lane, but the tuned taps
were written as a single byte value, so the other three lanes keep
their default equalizer setting and the received signal on them can
be degraded.
Use the E56 PHY FFE defaults on the 40G NIC and replicate each tap
value over the four lanes. The FFE fields grow to 32 bits to hold
the replicated value, and the devargs are parsed after the shared
code init so the MAC type is known when the 40G defaults are picked.
Fixes: 6104fd11086e ("net/txgbe: fix link stability for 25G NIC")
Signed-off-by: Zaiyu Wang <zaiyuwang at trustnetic.com>
---
drivers/net/txgbe/base/txgbe_e56.h | 3 +++
drivers/net/txgbe/base/txgbe_type.h | 8 ++++----
drivers/net/txgbe/txgbe_ethdev.c | 22 +++++++++++++++++++++-
3 files changed, 28 insertions(+), 5 deletions(-)
diff --git a/drivers/net/txgbe/base/txgbe_e56.h b/drivers/net/txgbe/base/txgbe_e56.h
index 1922a2eb92..a2ae7ccb7e 100644
--- a/drivers/net/txgbe/base/txgbe_e56.h
+++ b/drivers/net/txgbe/base/txgbe_e56.h
@@ -1715,4 +1715,7 @@ typedef union {
#define S40G_TX_FFE_CFG_POST 0x11111111
+/* One FFE byte per lane: replicate a user value over all four. */
+#define S40G_TX_FFE_4LANE(v) ((u32)((v) & 0xFF) * 0x01010101u)
+
#define BYPASS_CTLE_TAG 0x0
diff --git a/drivers/net/txgbe/base/txgbe_type.h b/drivers/net/txgbe/base/txgbe_type.h
index 9e662ab657..6043a6bf6f 100644
--- a/drivers/net/txgbe/base/txgbe_type.h
+++ b/drivers/net/txgbe/base/txgbe_type.h
@@ -739,8 +739,8 @@ struct txgbe_phy_info {
/* Some features need tri-state capability */
u16 ffe_set;
- u16 ffe_main;
- u16 ffe_pre;
- u16 ffe_pre2;
- u16 ffe_post;
+ u32 ffe_main;
+ u32 ffe_pre;
+ u32 ffe_pre2;
+ u32 ffe_post;
u16 fec_mode;
u16 bp_capa;
diff --git a/drivers/net/txgbe/txgbe_ethdev.c b/drivers/net/txgbe/txgbe_ethdev.c
index ec7914249f..844637c57a 100644
--- a/drivers/net/txgbe/txgbe_ethdev.c
+++ b/drivers/net/txgbe/txgbe_ethdev.c
@@ -538,4 +538,5 @@ txgbe_parse_devargs(struct rte_eth_dev *dev)
u16 ffe_main = 27;
u16 ffe_pre = 8;
+ u16 ffe_pre2 = 0;
u16 ffe_post = 44;
/* FDIR args */
@@ -547,4 +548,13 @@ txgbe_parse_devargs(struct rte_eth_dev *dev)
u16 rx_desc_merge = 1;
+ /* The 40G NIC holds one FFE byte per lane, so the E56 PHY defaults
+ * below are later replicated over the four lanes.
+ */
+ if (hw->mac.type == txgbe_mac_aml40) {
+ ffe_main = S40G_TX_FFE_CFG_MAIN & 0xFF;
+ ffe_pre = S40G_TX_FFE_CFG_PRE1 & 0xFF;
+ ffe_post = S40G_TX_FFE_CFG_POST & 0xFF;
+ }
+
if (devargs == NULL)
goto null;
@@ -595,4 +605,12 @@ null:
hw->phy.ffe_post = ffe_post;
+ /* The 40G PHY expects one FFE byte per lane. */
+ if (hw->mac.type == txgbe_mac_aml40) {
+ hw->phy.ffe_main = S40G_TX_FFE_4LANE(ffe_main);
+ hw->phy.ffe_pre = S40G_TX_FFE_4LANE(ffe_pre);
+ hw->phy.ffe_pre2 = S40G_TX_FFE_4LANE(ffe_pre2);
+ hw->phy.ffe_post = S40G_TX_FFE_4LANE(ffe_post);
+ }
+
fdir_conf->pballoc = pballoc;
fdir_conf->drop_queue = drop_queue;
@@ -697,5 +715,4 @@ eth_txgbe_dev_init(struct rte_eth_dev *eth_dev, void *init_params __rte_unused)
hw->isb_mem = TMZ_VADDR(mz);
- txgbe_parse_devargs(eth_dev);
/* Initialize the shared code (base driver) */
err = txgbe_init_shared_code(hw);
@@ -705,4 +722,7 @@ eth_txgbe_dev_init(struct rte_eth_dev *eth_dev, void *init_params __rte_unused)
}
+ /* Parsing the devargs requires a known MAC type. */
+ txgbe_parse_devargs(eth_dev);
+
if (hw->mac.type == txgbe_mac_aml)
txgbe_override_mac_ops(hw);
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:49.123316934 +0000
+++ 0351-net-txgbe-fix-40G-FFE-tuning-applied-to-first-lane-o.patch 2026-12-03 12:52:39.268938765 +0000
@@ -1 +1 @@
-From ae5dfbbe90082d491cc2fccf138aba2b401398f1 Mon Sep 17 00:00:00 2001
+From 603a1c484d6e3ae1ac4c801104a00de987db276f Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit ae5dfbbe90082d491cc2fccf138aba2b401398f1 ]
+
@@ -18 +19,0 @@
-Cc: stable at dpdk.org
@@ -40 +41 @@
-index 5c16c4f07e..60298800ee 100644
+index 9e662ab657..6043a6bf6f 100644
@@ -43 +44 @@
-@@ -740,8 +740,8 @@ struct txgbe_phy_info {
+@@ -739,8 +739,8 @@ struct txgbe_phy_info {
@@ -57 +58 @@
-index ececbfb13f..4529d34ca3 100644
+index ec7914249f..844637c57a 100644
@@ -60 +61 @@
-@@ -484,4 +484,5 @@ txgbe_parse_devargs(struct rte_eth_dev *dev)
+@@ -538,4 +538,5 @@ txgbe_parse_devargs(struct rte_eth_dev *dev)
@@ -66 +67 @@
-@@ -493,4 +494,13 @@ txgbe_parse_devargs(struct rte_eth_dev *dev)
+@@ -547,4 +548,13 @@ txgbe_parse_devargs(struct rte_eth_dev *dev)
@@ -80 +81 @@
-@@ -541,4 +551,12 @@ null:
+@@ -595,4 +605,12 @@ null:
@@ -93 +94 @@
-@@ -643,5 +661,4 @@ eth_txgbe_dev_init(struct rte_eth_dev *eth_dev, void *init_params __rte_unused)
+@@ -697,5 +715,4 @@ eth_txgbe_dev_init(struct rte_eth_dev *eth_dev, void *init_params __rte_unused)
@@ -99 +100 @@
-@@ -651,4 +668,7 @@ eth_txgbe_dev_init(struct rte_eth_dev *eth_dev, void *init_params __rte_unused)
+@@ -705,4 +722,7 @@ eth_txgbe_dev_init(struct rte_eth_dev *eth_dev, void *init_params __rte_unused)
More information about the stable
mailing list