patch 'net/nbl: fix MTU setting' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:01:21 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/c1b4b96e30646cfbb09785839bbe66bafb7d1715
Thanks.
Kevin
---
>From c1b4b96e30646cfbb09785839bbe66bafb7d1715 Mon Sep 17 00:00:00 2001
From: Dimon Zhao <dimon.zhao at nebula-matrix.com>
Date: Mon, 28 Sep 2026 20:52:35 -0700
Subject: [PATCH] net/nbl: fix MTU setting
[ upstream commit 10f5ee7d719ebf73a0328ae0227d0114e467d391 ]
The ethdev layer already updates dev->data->mtu on success.
After rte_eth_dev_configure(), dev_conf.rxmode.mtu becomes stale
and should not be modified by mtu_set.
Additionally, the original code assigned frame_size (MTU + overhead)
instead of MTU, confusing frame length with MTU.
Fixes: 75cdda36a4c5 ("net/nbl: support MTU update")
Signed-off-by: Dimon Zhao <dimon.zhao at nebula-matrix.com>
---
drivers/net/nbl/nbl_dev/nbl_dev.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/nbl/nbl_dev/nbl_dev.c b/drivers/net/nbl/nbl_dev/nbl_dev.c
index 6a0085f90b..2120510e31 100644
--- a/drivers/net/nbl/nbl_dev/nbl_dev.c
+++ b/drivers/net/nbl/nbl_dev/nbl_dev.c
@@ -760,8 +760,7 @@ int nbl_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu)
struct nbl_dev_mgt *dev_mgt = NBL_ADAPTER_TO_DEV_MGT(adapter);
struct nbl_dispatch_ops *disp_ops = NBL_DEV_MGT_TO_DISP_OPS(dev_mgt);
- uint32_t frame_size = mtu + NBL_ETH_OVERHEAD;
int ret;
- /* mtu setting is forbidden if port is start */
+ /* mtu setting is forbidden if port is started */
if (dev_data->dev_started) {
NBL_LOG(ERR, "port %d must be stopped before configuration", dev_data->port_id);
@@ -769,5 +768,4 @@ int nbl_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu)
}
- dev_data->dev_conf.rxmode.mtu = frame_size;
ret = disp_ops->set_mtu(NBL_DEV_MGT_TO_DISP_PRIV(dev_mgt), dev_mgt->net_dev->vsi_id, mtu);
if (ret)
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:43.671332166 +0000
+++ 0155-net-nbl-fix-MTU-setting.patch 2026-12-03 12:52:39.139702650 +0000
@@ -1 +1 @@
-From 10f5ee7d719ebf73a0328ae0227d0114e467d391 Mon Sep 17 00:00:00 2001
+From c1b4b96e30646cfbb09785839bbe66bafb7d1715 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 10f5ee7d719ebf73a0328ae0227d0114e467d391 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -22 +23 @@
-index 320f26619f..e41732ccd3 100644
+index 6a0085f90b..2120510e31 100644
@@ -25 +26 @@
-@@ -758,8 +758,7 @@ int nbl_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu)
+@@ -760,8 +760,7 @@ int nbl_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu)
@@ -35 +36 @@
-@@ -767,5 +766,4 @@ int nbl_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu)
+@@ -769,5 +768,4 @@ int nbl_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu)
More information about the stable
mailing list