patch 'event/cnxk: fix crash on CN10K' has been queued to stable release 23.11.7

Shani Peretz shperetz at nvidia.com
Wed Apr 15 12:00:13 CEST 2026


Hi,

FYI, your patch has been queued to stable release 23.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 04/19/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/shanipr/dpdk-stable

This queued commit can be viewed at:
https://github.com/shanipr/dpdk-stable/commit/3e30be6e774dfec1df0ce08e945ea2fea4d292a9

Thanks.

Shani

---
>From 3e30be6e774dfec1df0ce08e945ea2fea4d292a9 Mon Sep 17 00:00:00 2001
From: Rahul Bhansali <rbhansali at marvell.com>
Date: Wed, 4 Mar 2026 15:42:31 +0530
Subject: [PATCH] event/cnxk: fix crash on CN10K

[ upstream commit f181c1e2897eaf9defdabfcf9d641cf1b77436bf ]

The field evdev_priv will have valid event dev pointer only when
eth_rx_adapter_queue_add() is called.

In case of poll mode tests, queue add will not be called so this
will be NULL. It is fixed by having a NULL check before access.

Fixes: 01a990fe40e8 ("event/cnxk: fix OOP handling in event mode")

Signed-off-by: Rahul Bhansali <rbhansali at marvell.com>
---
 drivers/event/cnxk/cn10k_eventdev.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/event/cnxk/cn10k_eventdev.c b/drivers/event/cnxk/cn10k_eventdev.c
index b870a0e94e..1ce34cd917 100644
--- a/drivers/event/cnxk/cn10k_eventdev.c
+++ b/drivers/event/cnxk/cn10k_eventdev.c
@@ -812,8 +812,12 @@ cn10k_sso_rx_offload_cb(uint16_t port_id, uint64_t flags)
 	struct rte_eth_dev *dev = &rte_eth_devices[port_id];
 	struct cnxk_eth_dev *cnxk_eth_dev = dev->data->dev_private;
 	struct rte_eventdev *event_dev = cnxk_eth_dev->evdev_priv;
-	struct cnxk_sso_evdev *evdev = cnxk_sso_pmd_priv(event_dev);
+	struct cnxk_sso_evdev *evdev;
+
+	if (event_dev == NULL)
+		return;
 
+	evdev = cnxk_sso_pmd_priv(event_dev);
 	evdev->rx_offloads |= flags;
 	cn10k_sso_fp_fns_set((struct rte_eventdev *)(uintptr_t)event_dev);
 	eventdev_fops_update(event_dev);
-- 
2.43.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-04-14 14:44:35.620300778 +0300
+++ 0072-event-cnxk-fix-crash-on-CN10K.patch	2026-04-14 14:44:28.795401000 +0300
@@ -1 +1 @@
-From f181c1e2897eaf9defdabfcf9d641cf1b77436bf Mon Sep 17 00:00:00 2001
+From 3e30be6e774dfec1df0ce08e945ea2fea4d292a9 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit f181c1e2897eaf9defdabfcf9d641cf1b77436bf ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index 0c1431b4e7..2e4b8aab92 100644
+index b870a0e94e..1ce34cd917 100644
@@ -24 +25 @@
-@@ -675,8 +675,12 @@ cn10k_sso_rx_offload_cb(uint16_t port_id, uint64_t flags)
+@@ -812,8 +812,12 @@ cn10k_sso_rx_offload_cb(uint16_t port_id, uint64_t flags)


More information about the stable mailing list