patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH] net/idpf: reset queue flag when queue is stopped
@ 2023-03-16  8:09 beilei.xing
  2023-03-17  3:30 ` Zhang, Qi Z
  0 siblings, 1 reply; 2+ messages in thread
From: beilei.xing @ 2023-03-16  8:09 UTC (permalink / raw)
  To: qi.z.zhang; +Cc: dev, Beilei Xing, stable, Jingjing Wu

From: Beilei Xing <beilei.xing@intel.com>

Reset q_started flag when Rx/Tx queue is stopped.

Fixes: c03af6fa0ef1 ("net/idpf: support queue stop")
Cc: stable@dpdk.org

Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
Signed-off-by: Beilei Xing <beilei.xing@intel.com>
---
 drivers/net/idpf/idpf_rxtx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/idpf/idpf_rxtx.c b/drivers/net/idpf/idpf_rxtx.c
index 34205a1025..414f9a37f6 100644
--- a/drivers/net/idpf/idpf_rxtx.c
+++ b/drivers/net/idpf/idpf_rxtx.c
@@ -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);
-- 
2.26.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [PATCH] net/idpf: reset queue flag when queue is stopped
  2023-03-16  8:09 [PATCH] net/idpf: reset queue flag when queue is stopped beilei.xing
@ 2023-03-17  3:30 ` Zhang, Qi Z
  0 siblings, 0 replies; 2+ messages in thread
From: Zhang, Qi Z @ 2023-03-17  3:30 UTC (permalink / raw)
  To: Xing, Beilei; +Cc: dev, stable, Wu, Jingjing



> -----Original Message-----
> From: Xing, Beilei <beilei.xing@intel.com>
> Sent: Thursday, March 16, 2023 4:09 PM
> To: Zhang, Qi Z <qi.z.zhang@intel.com>
> Cc: dev@dpdk.org; Xing, Beilei <beilei.xing@intel.com>; stable@dpdk.org;
> Wu, Jingjing <jingjing.wu@intel.com>
> Subject: [PATCH] net/idpf: reset queue flag when queue is stopped
> 
> From: Beilei Xing <beilei.xing@intel.com>
> 
> Reset q_started flag when Rx/Tx queue is stopped.
> 
> Fixes: c03af6fa0ef1 ("net/idpf: support queue stop")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
> Signed-off-by: Beilei Xing <beilei.xing@intel.com>

Acked-by: Qi Zhang <qi.z.zhang@intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-17  3:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-16  8:09 [PATCH] net/idpf: reset queue flag when queue is stopped beilei.xing
2023-03-17  3:30 ` Zhang, Qi Z

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).