net/idpf: reset queue flag when queue is stopped
PATCH 1/1 net/idpf: reset queue flag when queue is stopped
From: Beilei Xing <[email protected]>
Reset q_started flag when Rx/Tx queue is stopped.
Fixes c03af6fa0ef1 ("net/idpf: support queue stop")
Signed-off-by Jingjing Wu <[email protected]>
Signed-off-by Beilei Xing <[email protected]>
--- drivers/net/idpf/idpf_rxtx.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/idpf/idpf_rxtx.c +2 -0
@@ -675,6 +675,7 @@ idpf_rx_queue_stop(struct rte_eth_dev *dev, uint16_t rx_queue_id) } rxq = dev->data->rx_queues[rx_queue_id]; + rxq->q_started = false;if (vport->rxq_model ==VIRTCHNL2_QUEUE_MODEL_SINGLE ) { rxq->ops->release_mbufs (rxq);idpf_qc_single_rx_queue_reset (rxq);
@@ -706,6 +707,7 @@ idpf_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id) } txq = dev->data->tx_queues[tx_queue_id]; + txq->q_started = false; txq->ops->release_mbufs (txq);if (vport->txq_model ==VIRTCHNL2_QUEUE_MODEL_SINGLE ) {idpf_qc_single_tx_queue_reset (txq);
Signature · 1 line
2.26.2
Quoted 12 lines
-----Original Message-----
From: Xing, Beilei <[email protected]>
Sent: Thursday, March 16, 2023 4:09 PM
To: Zhang, Qi Z <[email protected]>
Cc: [email protected]; Xing, Beilei <[email protected]>; [email protected]; Wu, Jingjing <[email protected]>
Subject: [PATCH] net/idpf: reset queue flag when queue is stoppedFrom: Beilei Xing <[email protected]>
Quoted 7 lines
Reset
q_startedflag when Rx/Tx queue is stopped.Fixes c03af6fa0ef1 ("net/idpf: support queue stop")Signed-off-by Jingjing Wu <[email protected]>Signed-off-by Beilei Xing <[email protected]>
Acked-by Qi Zhang <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi