From: Peng Zhang <[email protected]>

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: [email protected]
Cc: [email protected]

Signed-off-by: Peng Zhang <[email protected]>
Reviewed-by: Chaoyong He <[email protected]>
Reviewed-by: Long Wu <[email protected]>
---
 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

Reply via email to