patch 'net/idpf: reset queue flag when queue is stopped' has been queued to stable release 22.11.2

Xueming Li xuemingl at nvidia.com
Sun Apr 9 17:25:05 CEST 2023


Hi,

FYI, your patch has been queued to stable release 22.11.2

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 04/11/23. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging

This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging/commit/158c05028fbeb46dbd225167181305a7d0db6047

Thanks.

Xueming Li <xuemingl at nvidia.com>

---
>From 158c05028fbeb46dbd225167181305a7d0db6047 Mon Sep 17 00:00:00 2001
From: Beilei Xing <beilei.xing at intel.com>
Date: Thu, 16 Mar 2023 08:09:21 +0000
Subject: [PATCH] net/idpf: reset queue flag when queue is stopped
Cc: Xueming Li <xuemingl at nvidia.com>

[ upstream commit 6eed0be6bd3e268c7bed919a7f2317e0ebaebf38 ]

Reset q_started flag when Rx/Tx queue is stopped.

Fixes: c03af6fa0ef1 ("net/idpf: support queue stop")

Signed-off-by: Jingjing Wu <jingjing.wu at intel.com>
Signed-off-by: Beilei Xing <beilei.xing at intel.com>
Acked-by: Qi Zhang <qi.z.zhang at 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 5aef8ba2b6..1cbd5be8cc 100644
--- a/drivers/net/idpf/idpf_rxtx.c
+++ b/drivers/net/idpf/idpf_rxtx.c
@@ -1162,6 +1162,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);
 		reset_single_rx_queue(rxq);
@@ -1193,6 +1194,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) {
 		reset_single_tx_queue(txq);
-- 
2.25.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-04-09 21:45:41.775506900 +0800
+++ 0117-net-idpf-reset-queue-flag-when-queue-is-stopped.patch	2023-04-09 21:45:38.779042200 +0800
@@ -1 +1 @@
-From 6eed0be6bd3e268c7bed919a7f2317e0ebaebf38 Mon Sep 17 00:00:00 2001
+From 158c05028fbeb46dbd225167181305a7d0db6047 Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 6eed0be6bd3e268c7bed919a7f2317e0ebaebf38 ]
@@ -9 +11,0 @@
-Cc: stable at dpdk.org
@@ -19 +21 @@
-index 34205a1025..414f9a37f6 100644
+index 5aef8ba2b6..1cbd5be8cc 100644
@@ -22 +24 @@
-@@ -675,6 +675,7 @@ idpf_rx_queue_stop(struct rte_eth_dev *dev, uint16_t rx_queue_id)
+@@ -1162,6 +1162,7 @@ idpf_rx_queue_stop(struct rte_eth_dev *dev, uint16_t rx_queue_id)
@@ -29,2 +31,2 @@
- 		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)
+ 		reset_single_rx_queue(rxq);
+@@ -1193,6 +1194,7 @@ idpf_tx_queue_stop(struct rte_eth_dev *dev, uint16_t tx_queue_id)
@@ -37 +39 @@
- 		idpf_qc_single_tx_queue_reset(txq);
+ 		reset_single_tx_queue(txq);


More information about the stable mailing list