* [PATCH v3 29/33] common/cnxk: fix inbound IPsec sa setup
[not found] ` <20250224095241.1263700-1-ndabilpuram@marvell.com>
@ 2025-02-24 9:52 ` Nithin Dabilpuram
0 siblings, 0 replies; only message in thread
From: Nithin Dabilpuram @ 2025-02-24 9:52 UTC (permalink / raw)
To: jerinj, Nithin Dabilpuram, Kiran Kumar K, Sunil Kumar Kori,
Satha Rao, Harman Kalra
Cc: dev, stable
Make sure the w2 in inbound SA is set for inline IPsec have
L3 header on errors.
Fixes: 350b7a536a51 ("common/cnxk: enable L3 header write back in SA")
Cc: stable@dpdk.org
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
---
drivers/common/cnxk/cnxk_security.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/common/cnxk/cnxk_security.c b/drivers/common/cnxk/cnxk_security.c
index 3a747ed441..a3c06c1e88 100644
--- a/drivers/common/cnxk/cnxk_security.c
+++ b/drivers/common/cnxk/cnxk_security.c
@@ -315,7 +315,7 @@ cnxk_ot_ipsec_inb_sa_fill(struct roc_ot_ipsec_inb_sa *sa,
/* Initialize the SA */
roc_ot_ipsec_inb_sa_init(sa);
- w2.u64 = 0;
+ w2.u64 = sa->w2.u64;
rc = ot_ipsec_sa_common_param_fill(&w2, sa->cipher_key, sa->w8.s.salt,
sa->hmac_opad_ipad, ipsec_xfrm,
crypto_xfrm);
--
2.34.1
^ permalink raw reply [flat|nested] only message in thread