[PATCH 05/18] common/cnxk: update inline profile ID for cn20k
Rahul Bhansali
rbhansali at marvell.com
Wed Jan 28 07:03:03 CET 2026
Update inline IPsec profile ID in nix_spi_to_sa_add mbox
as required by ROC_NPC_SEC_ACTION_ALG4 for cn20k.
Signed-off-by: Rahul Bhansali <rbhansali at marvell.com>
---
drivers/common/cnxk/roc_npc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/common/cnxk/roc_npc.c b/drivers/common/cnxk/roc_npc.c
index 56e0e05b63..7846913417 100644
--- a/drivers/common/cnxk/roc_npc.c
+++ b/drivers/common/cnxk/roc_npc.c
@@ -491,6 +491,7 @@ npc_parse_spi_to_sa_action(struct roc_npc *roc_npc, const struct roc_npc_action
struct roc_npc_flow *flow, uint8_t *has_spi_to_sa_action)
{
const struct roc_npc_sec_action *sec_action;
+ struct roc_nix *roc_nix = roc_npc->roc_nix;
struct nix_spi_to_sa_add_req *req;
struct nix_spi_to_sa_add_rsp *rsp;
struct nix_inl_dev *inl_dev;
@@ -546,6 +547,9 @@ npc_parse_spi_to_sa_action(struct roc_npc *roc_npc, const struct roc_npc_action
req->spi_index = plt_be_to_cpu_32(flow->spi_to_sa_info.spi);
req->match_id = flow->match_id;
req->valid = true;
+ if (roc_model_is_cn20k())
+ req->inline_profile_id =
+ roc_nix_inl_inb_ipsec_profile_id_get(roc_nix, true);
rc = mbox_process_msg(mbox, (void *)&rsp);
if (rc)
return rc;
--
2.34.1
More information about the dev
mailing list