* [PATCH] net/dpaa: fix Rx queue shutdown before init
@ 2026-08-27 7:29 Prashant Gupta
2026-08-27 15:59 ` Hemant Agrawal
2026-08-31 6:11 ` [PATCH v2] " Prashant Gupta
0 siblings, 2 replies; 5+ messages in thread
From: Prashant Gupta @ 2026-08-27 7:29 UTC (permalink / raw)
To: stephen, david.marchand, hemant.agrawal, dev; +Cc: stable
The frame queue shutdown in dpaa_eth_rx_queue_setup() is too late:
the queue has already been created and initialized by dpaa_dev_init(),
so the shutdown forces a live FQ out of service and the queue no
longer receives frames.
Move the shutdown to dpaa_dev_init(), just before dpaa_rx_queue_init(),
where it cleans up a frame queue left over from a previous run as
intended.
Fixes: 0e3c389b9e4f ("bus/dpaa: do proper cleanup of frame queues on shutdown")
Cc: stable@dpdk.org
Signed-off-by: Prashant Gupta <prashant.gupta_3@nxp.com>
---
drivers/net/dpaa/dpaa_ethdev.c | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c
index c6e84e8ec1..7907273fa2 100644
--- a/drivers/net/dpaa/dpaa_ethdev.c
+++ b/drivers/net/dpaa/dpaa_ethdev.c
@@ -1193,13 +1193,6 @@ int dpaa_eth_rx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx,
DPAA_PMD_INFO("Rx queue setup for queue index: %d fq_id (0x%x)",
queue_idx, rxq->fqid);
- /* Shutdown FQ before configure */
- ret = qman_shutdown_fq_by_fqid(rxq->fqid);
- if (ret) {
- DPAA_PMD_WARN("%s: Failed(%d) to shutdown rxq%d's fq(fqid=0x%x)",
- dev->data->name, ret, queue_idx, rxq->fqid);
- }
-
if (!fif->num_profiles) {
if (dpaa_intf->bp_info && dpaa_intf->bp_info->bp &&
dpaa_intf->bp_info->mp != mp) {
@@ -2574,6 +2567,15 @@ dpaa_dev_init(struct rte_eth_dev *eth_dev)
vsp_id = dev_vspids[loop];
+ /* Clean up a frame queue left behind by a previous run
+ * before it is initialized.
+ */
+ ret = qman_shutdown_fq_by_fqid(fqid);
+ if (ret < 0) {
+ DPAA_PMD_ERR("%s: Failed(%d) to shutdown rxq%d's fq(fqid=0x%x)",
+ dpaa_intf->name, ret, loop, fqid);
+ }
+
if (dpaa_intf->cgr_rx)
dpaa_intf->cgr_rx[loop].cgrid = cgrid[loop];
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] net/dpaa: fix Rx queue shutdown before init
2026-08-27 7:29 [PATCH] net/dpaa: fix Rx queue shutdown before init Prashant Gupta
@ 2026-08-27 15:59 ` Hemant Agrawal
2026-08-31 6:11 ` [PATCH v2] " Prashant Gupta
1 sibling, 0 replies; 5+ messages in thread
From: Hemant Agrawal @ 2026-08-27 15:59 UTC (permalink / raw)
To: Prashant Gupta, stephen, david.marchand, hemant.agrawal, dev; +Cc: stable
On 27-08-2026 12:59, Prashant Gupta wrote:
> The frame queue shutdown in dpaa_eth_rx_queue_setup() is too late:
> the queue has already been created and initialized by dpaa_dev_init(),
> so the shutdown forces a live FQ out of service and the queue no
> longer receives frames.
>
> Move the shutdown to dpaa_dev_init(), just before dpaa_rx_queue_init(),
> where it cleans up a frame queue left over from a previous run as
> intended.
>
> Fixes: 0e3c389b9e4f ("bus/dpaa: do proper cleanup of frame queues on shutdown")
> Cc: stable@dpdk.org
>
> Signed-off-by: Prashant Gupta <prashant.gupta_3@nxp.com>
> ---
> drivers/net/dpaa/dpaa_ethdev.c | 16 +++++++++-------
> 1 file changed, 9 insertions(+), 7 deletions(-)
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2] net/dpaa: fix Rx queue shutdown before init
2026-08-27 7:29 [PATCH] net/dpaa: fix Rx queue shutdown before init Prashant Gupta
2026-08-27 15:59 ` Hemant Agrawal
@ 2026-08-31 6:11 ` Prashant Gupta
2026-08-31 7:18 ` [PATCH v3] " Prashant Gupta
1 sibling, 1 reply; 5+ messages in thread
From: Prashant Gupta @ 2026-08-31 6:11 UTC (permalink / raw)
To: dev; +Cc: stable
The frame queue shutdown in dpaa_eth_rx_queue_setup() is too late:
the queue has already been created and initialized by dpaa_dev_init(),
so the shutdown forces a live FQ out of service and the queue no
longer receives frames.
Move the shutdown to dpaa_dev_init(), just before dpaa_rx_queue_init(),
where it cleans up a frame queue left over from a previous run as
intended.
Fixes: 0e3c389b9e4f ("bus/dpaa: do proper cleanup of frame queues on shutdown")
Cc: stable@dpdk.org
Signed-off-by: Prashant Gupta <prashant.gupta_3@nxp.com>
---
drivers/net/dpaa/dpaa_ethdev.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c
index 4dc4d1f10c..b7bc616fed 100644
--- a/drivers/net/dpaa/dpaa_ethdev.c
+++ b/drivers/net/dpaa/dpaa_ethdev.c
@@ -1119,9 +1119,6 @@ int dpaa_eth_rx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx,
DPAA_PMD_INFO("Rx queue setup for queue index: %d fq_id (0x%x)",
queue_idx, rxq->fqid);
- /* Shutdown FQ before configure */
- qman_shutdown_fq(rxq->fqid);
-
if (!fif->num_profiles) {
if (dpaa_intf->bp_info && dpaa_intf->bp_info->bp &&
dpaa_intf->bp_info->mp != mp) {
@@ -2355,6 +2352,11 @@ dpaa_dev_init(struct rte_eth_dev *eth_dev)
vsp_id = dev_vspids[loop];
+ /* Clean up a frame queue left behind by a previous run
+ * before it is initialized.
+ */
+ qman_shutdown_fq(rxq->fqid);
+
if (dpaa_intf->cgr_rx)
dpaa_intf->cgr_rx[loop].cgrid = cgrid[loop];
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v3] net/dpaa: fix Rx queue shutdown before init
2026-08-31 6:11 ` [PATCH v2] " Prashant Gupta
@ 2026-08-31 7:18 ` Prashant Gupta
2026-08-31 15:46 ` Stephen Hemminger
0 siblings, 1 reply; 5+ messages in thread
From: Prashant Gupta @ 2026-08-31 7:18 UTC (permalink / raw)
To: dev; +Cc: stable
The frame queue shutdown in dpaa_eth_rx_queue_setup() is too late:
the queue has already been created and initialized by dpaa_dev_init(),
so the shutdown forces a live FQ out of service and the queue no
longer receives frames.
Move the shutdown to dpaa_dev_init(), just before dpaa_rx_queue_init(),
where it cleans up a frame queue left over from a previous run as
intended.
Fixes: 0e3c389b9e4f ("bus/dpaa: do proper cleanup of frame queues on shutdown")
Cc: stable@dpdk.org
Signed-off-by: Prashant Gupta <prashant.gupta_3@nxp.com>
---
drivers/net/dpaa/dpaa_ethdev.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c
index 4dc4d1f10c..4463c56601 100644
--- a/drivers/net/dpaa/dpaa_ethdev.c
+++ b/drivers/net/dpaa/dpaa_ethdev.c
@@ -1119,9 +1119,6 @@ int dpaa_eth_rx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx,
DPAA_PMD_INFO("Rx queue setup for queue index: %d fq_id (0x%x)",
queue_idx, rxq->fqid);
- /* Shutdown FQ before configure */
- qman_shutdown_fq(rxq->fqid);
-
if (!fif->num_profiles) {
if (dpaa_intf->bp_info && dpaa_intf->bp_info->bp &&
dpaa_intf->bp_info->mp != mp) {
@@ -2355,6 +2352,11 @@ dpaa_dev_init(struct rte_eth_dev *eth_dev)
vsp_id = dev_vspids[loop];
+ /* Clean up a frame queue left behind by a previous run
+ * before it is initialized.
+ */
+ qman_shutdown_fq(fqid);
+
if (dpaa_intf->cgr_rx)
dpaa_intf->cgr_rx[loop].cgrid = cgrid[loop];
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v3] net/dpaa: fix Rx queue shutdown before init
2026-08-31 7:18 ` [PATCH v3] " Prashant Gupta
@ 2026-08-31 15:46 ` Stephen Hemminger
0 siblings, 0 replies; 5+ messages in thread
From: Stephen Hemminger @ 2026-08-31 15:46 UTC (permalink / raw)
To: Prashant Gupta; +Cc: dev, stable
On Mon, 31 Aug 2026 12:48:25 +0530
Prashant Gupta <prashant.gupta_3@nxp.com> wrote:
> The frame queue shutdown in dpaa_eth_rx_queue_setup() is too late:
> the queue has already been created and initialized by dpaa_dev_init(),
> so the shutdown forces a live FQ out of service and the queue no
> longer receives frames.
>
> Move the shutdown to dpaa_dev_init(), just before dpaa_rx_queue_init(),
> where it cleans up a frame queue left over from a previous run as
> intended.
>
> Fixes: 0e3c389b9e4f ("bus/dpaa: do proper cleanup of frame queues on shutdown")
> Cc: stable@dpdk.org
>
> Signed-off-by: Prashant Gupta <prashant.gupta_3@nxp.com>
> ---
Applied to next-net
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-08-31 15:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-27 7:29 [PATCH] net/dpaa: fix Rx queue shutdown before init Prashant Gupta
2026-08-27 15:59 ` Hemant Agrawal
2026-08-31 6:11 ` [PATCH v2] " Prashant Gupta
2026-08-31 7:18 ` [PATCH v3] " Prashant Gupta
2026-08-31 15:46 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox