From: Dimon Zhao <dimon.zhao@nebula-matrix.com>
To: dev@dpdk.org
Cc: Dimon Zhao <dimon.zhao@nebula-matrix.com>,
Leon Yu <leon.yu@nebula-matrix.com>,
Sam Chen <sam.chen@nebula-matrix.com>
Subject: [PATCH v1 1/1] net/nbl: allow MTU change when port is started
Date: Tue, 20 Oct 2026 02:42:27 -0700 [thread overview]
Message-ID: <20261020094227.166491-2-dimon.zhao@nebula-matrix.com> (raw)
In-Reply-To: <20261020094227.166491-1-dimon.zhao@nebula-matrix.com>
Remove the dev_started check in nbl_mtu_set() to allow MTU
configuration while the port is started.
Signed-off-by: Dimon Zhao <dimon.zhao@nebula-matrix.com>
---
drivers/net/nbl/nbl_dev/nbl_dev.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/net/nbl/nbl_dev/nbl_dev.c b/drivers/net/nbl/nbl_dev/nbl_dev.c
index e41732ccd3..2c1e39f559 100644
--- a/drivers/net/nbl/nbl_dev/nbl_dev.c
+++ b/drivers/net/nbl/nbl_dev/nbl_dev.c
@@ -753,18 +753,11 @@ int nbl_xstats_reset(struct rte_eth_dev *eth_dev)
int nbl_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu)
{
- struct rte_eth_dev_data *dev_data = eth_dev->data;
struct nbl_adapter *adapter = ETH_DEV_TO_NBL_DEV_PF_PRIV(eth_dev);
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);
int ret;
- /* 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);
- return -EBUSY;
- }
-
ret = disp_ops->set_mtu(NBL_DEV_MGT_TO_DISP_PRIV(dev_mgt), dev_mgt->net_dev->vsi_id, mtu);
if (ret)
return ret;
--
2.34.1
next prev parent reply other threads:[~2026-10-20 9:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-20 9:42 [PATCH v1 0/1] allow MTU change when port is started Dimon Zhao
2026-10-20 9:42 ` Dimon Zhao [this message]
2026-10-20 14:45 ` [PATCH v1 1/1] net/nbl: " Stephen Hemminger
-- strict thread matches above, loose matches on Subject: below --
2026-09-28 8:36 [PATCH v1 0/1] " Dimon Zhao
2026-09-28 8:36 ` [PATCH v1 1/1] net/nbl: " Dimon Zhao
2026-09-28 18:30 ` Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261020094227.166491-2-dimon.zhao@nebula-matrix.com \
--to=dimon.zhao@nebula-matrix.com \
--cc=dev@dpdk.org \
--cc=leon.yu@nebula-matrix.com \
--cc=sam.chen@nebula-matrix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox