patch 'net/cnxk: fix custom inbound SA condition check' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:02:53 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.11.5

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/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/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/3682ff2144c010c3f782352368f498850f848f25

Thanks.

Kevin

---
>From 3682ff2144c010c3f782352368f498850f848f25 Mon Sep 17 00:00:00 2001
From: Rakesh Kudurumalla <rkudurumalla at marvell.com>
Date: Thu, 17 Sep 2026 12:40:16 +0530
Subject: [PATCH] net/cnxk: fix custom inbound SA condition check

[ upstream commit bc71492dc0af82fd107ad67c8a73e57493606d94 ]

Custom inbound SA condition should be check when inbound SA create
and destroy.

Fixes: 7eaa499dd0c2 ("net/cnxk: support CN20K inline IPsec session")

Signed-off-by: Rakesh Kudurumalla <rkudurumalla at marvell.com>
---
 drivers/net/cnxk/cn20k_ethdev_sec.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/cnxk/cn20k_ethdev_sec.c b/drivers/net/cnxk/cn20k_ethdev_sec.c
index aa2abc4898..2b9dd0375a 100644
--- a/drivers/net/cnxk/cn20k_ethdev_sec.c
+++ b/drivers/net/cnxk/cn20k_ethdev_sec.c
@@ -704,7 +704,4 @@ cn20k_eth_sec_session_create(void *device, struct rte_security_session_conf *con
 		return -ENOTSUP;
 
-	if (nix->custom_inb_sa)
-		return -ENOTSUP;
-
 	if (rte_security_dynfield_register() < 0)
 		return -ENOTSUP;
@@ -731,4 +728,7 @@ cn20k_eth_sec_session_create(void *device, struct rte_security_session_conf *con
 	crypto = conf->crypto_xform;
 
+	if (nix->custom_inb_sa && ipsec->direction == RTE_SECURITY_IPSEC_SA_DIR_INGRESS)
+		return -ENOTSUP;
+
 	rc = cnxk_ipsec_xform_verify(ipsec, crypto);
 	if (rc) {
@@ -972,5 +972,5 @@ cn20k_eth_sec_session_destroy(void *device, struct rte_security_session *sess)
 	if (!eth_sec)
 		return -ENOENT;
-	if (dev->nix.custom_inb_sa)
+	if (dev->nix.custom_inb_sa && eth_sec->inb)
 		return -ENOTSUP;
 
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:46.239878174 +0000
+++ 0247-net-cnxk-fix-custom-inbound-SA-condition-check.patch	2026-12-03 12:52:39.200564823 +0000
@@ -1 +1 @@
-From bc71492dc0af82fd107ad67c8a73e57493606d94 Mon Sep 17 00:00:00 2001
+From 3682ff2144c010c3f782352368f498850f848f25 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit bc71492dc0af82fd107ad67c8a73e57493606d94 ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -18 +19 @@
-index b365426065..f648340445 100644
+index aa2abc4898..2b9dd0375a 100644
@@ -21 +22 @@
-@@ -806,7 +806,4 @@ cn20k_eth_sec_session_create(void *device, struct rte_security_session_conf *con
+@@ -704,7 +704,4 @@ cn20k_eth_sec_session_create(void *device, struct rte_security_session_conf *con
@@ -29 +30 @@
-@@ -833,4 +830,7 @@ cn20k_eth_sec_session_create(void *device, struct rte_security_session_conf *con
+@@ -731,4 +728,7 @@ cn20k_eth_sec_session_create(void *device, struct rte_security_session_conf *con
@@ -37 +38 @@
-@@ -1084,5 +1084,5 @@ cn20k_eth_sec_session_destroy(void *device, struct rte_security_session *sess)
+@@ -972,5 +972,5 @@ cn20k_eth_sec_session_destroy(void *device, struct rte_security_session *sess)



More information about the stable mailing list