[PATCH v1 1/1] net/nbl: allow MTU change when port is started

Dimon Zhao dimon.zhao at nebula-matrix.com
Mon Sep 28 10:36:16 CEST 2026


Remove the dev_started check in nbl_mtu_set() to allow MTU
configuration while the port is started.

Fixes: 75cdda36a4c5 ("net/nbl: support MTU update")
Cc: stable at dpdk.org
Signed-off-by: Dimon Zhao <dimon.zhao at nebula-matrix.com>
---
 drivers/net/nbl/nbl_dev/nbl_dev.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/net/nbl/nbl_dev/nbl_dev.c b/drivers/net/nbl/nbl_dev/nbl_dev.c
index 320f26619f..1c04fb8bfd 100644
--- a/drivers/net/nbl/nbl_dev/nbl_dev.c
+++ b/drivers/net/nbl/nbl_dev/nbl_dev.c
@@ -760,12 +760,6 @@ int nbl_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu)
 	uint32_t frame_size = mtu + NBL_ETH_OVERHEAD;
 	int ret;
 
-	/* mtu setting is forbidden if port is start */
-	if (dev_data->dev_started) {
-		NBL_LOG(ERR, "port %d must be stopped before configuration", dev_data->port_id);
-		return -EBUSY;
-	}
-
 	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.34.1



More information about the stable mailing list