[PATCH 02/23] net/nfp: disable ctrl VNIC queues
Chaoyong He
chaoyong.he at corigine.com
Wed Jun 19 11:58:09 CEST 2024
From: Peng Zhang <peng.zhang at corigine.com>
The logic forgot to disable the ctrl VNIC queues when representor
port close, and this will cause DPDK application restart fail if
not force reload the flower firmware.
Fix this by adding the missing logic to disable the ctrl VNIC
queues.
Fixes: 945441ebdb9c ("net/nfp: add flower ctrl VNIC")
Cc: chaoyong.he at corigine.com
Cc: stable at dpdk.org
Signed-off-by: Peng Zhang <peng.zhang at corigine.com>
Reviewed-by: Chaoyong He <chaoyong.he at corigine.com>
Reviewed-by: Long Wu <long.wu at corigine.com>
---
drivers/net/nfp/flower/nfp_flower.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/nfp/flower/nfp_flower.c b/drivers/net/nfp/flower/nfp_flower.c
index 0edebd574a..5caaf9d745 100644
--- a/drivers/net/nfp/flower/nfp_flower.c
+++ b/drivers/net/nfp/flower/nfp_flower.c
@@ -533,6 +533,8 @@ nfp_flower_cleanup_ctrl_vnic(struct nfp_app_fw_flower *app_fw_flower,
pci_name = strchr(hw_priv->pf_dev->pci_dev->name, ':') + 1;
+ nfp_net_disable_queues(eth_dev);
+
snprintf(ctrl_txring_name, sizeof(ctrl_txring_name), "%s_cttx_ring", pci_name);
for (i = 0; i < hw->max_tx_queues; i++) {
txq = eth_dev->data->tx_queues[i];
--
2.39.1
More information about the dev
mailing list