patch 'net/dpaa2: fix Rx queue count for primary process' has been queued to stable release 24.11.7
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Mon Jul 13 19:18:01 CEST 2026
Hi,
FYI, your patch has been queued to stable release 24.11.7
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 07/15/26. 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://github.com/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/a252962d48439c24376bc05a53f4cdd7acde5471
Thanks.
Luca Boccassi
---
>From a252962d48439c24376bc05a53f4cdd7acde5471 Mon Sep 17 00:00:00 2001
From: Maxime Leroy <maxime at leroys.fr>
Date: Fri, 10 Jul 2026 23:09:15 +0200
Subject: [PATCH] net/dpaa2: fix Rx queue count for primary process
[ upstream commit 0800fa6e31e28e734815197360f3533e70d2f000 ]
The rx_queue_count callback was only assigned on the secondary process
path of dpaa2_dev_init(), leaving eth_dev->rx_queue_count NULL for the
primary process. The fast-path rte_eth_rx_queue_count() performs an
unguarded indirect call in non-debug builds, so invoking it on a
primary-process dpaa2 port dereferences a NULL function pointer and
crashes.
Assign the callback on the primary-process path as well, so both the
primary and secondary paths set it.
Fixes: cbfc6111b557 ("ethdev: move inline device operations")
Signed-off-by: Maxime Leroy <maxime at leroys.fr>
---
drivers/net/dpaa2/dpaa2_ethdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c
index 74e11a3245..d2c9ca5f6d 100644
--- a/drivers/net/dpaa2/dpaa2_ethdev.c
+++ b/drivers/net/dpaa2/dpaa2_ethdev.c
@@ -2782,6 +2782,7 @@ dpaa2_dev_init(struct rte_eth_dev *eth_dev)
}
eth_dev->dev_ops = &dpaa2_ethdev_ops;
+ eth_dev->rx_queue_count = dpaa2_dev_rx_queue_count;
if (dpaa2_get_devargs(dev->devargs, DRIVER_LOOPBACK_MODE)) {
eth_dev->rx_pkt_burst = dpaa2_dev_loopback_rx;
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-07-13 18:17:06.350724299 +0100
+++ 0021-net-dpaa2-fix-Rx-queue-count-for-primary-process.patch 2026-07-13 18:17:05.590283127 +0100
@@ -1 +1 @@
-From 0800fa6e31e28e734815197360f3533e70d2f000 Mon Sep 17 00:00:00 2001
+From a252962d48439c24376bc05a53f4cdd7acde5471 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 0800fa6e31e28e734815197360f3533e70d2f000 ]
+
@@ -17 +18,0 @@
-Cc: stable at dpdk.org
@@ -25 +26 @@
-index a68404ee5e..61122b323f 100644
+index 74e11a3245..d2c9ca5f6d 100644
@@ -28 +29 @@
-@@ -3276,6 +3276,7 @@ dpaa2_dev_init(struct rte_eth_dev *eth_dev)
+@@ -2782,6 +2782,7 @@ dpaa2_dev_init(struct rte_eth_dev *eth_dev)
More information about the stable
mailing list