From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 73BB141E08; Mon, 13 Mar 2023 06:24:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 190D5406BC; Mon, 13 Mar 2023 06:24:13 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 7A5EC40151 for ; Mon, 13 Mar 2023 06:24:11 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32D5LpHV018247 for ; Sun, 12 Mar 2023 22:24:10 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=H8YKxGe6x+DA3ipGUj2POJPGk5qZIGmwvy2/DCzvCzQ=; b=KPLPt1ZXt6D3wyGokuxiKM9/hMdLTO48krWZkefS9bapTa5J/MOTLi7kdYdrkhucT+y9 jW1kZsISVyx9c62kBC+9dJTip/3mIt1/NZXT978cAEnwxSTEtCJZctkdro5S5Cc0VYRX slcsGDX1JgncMGohPW5Ulcv8yO5fxdF0FXVN4SIOrYN6Jsb0g/hpeW8eRcybNLjxN6i5 OjpJjIE8XTgkRJOm4hdOBgUT89YBljsVuV9okgz/ksMgJFFLbG3FE2i1aCwSNwsSOLfm gaR3SlwWbpQBUtCdTA2ItRMCotxUarNbY++v+lWEk+pedV97AED4wDcDvKfHAslXMk1J og== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3p8qvvct32-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sun, 12 Mar 2023 22:24:10 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Sun, 12 Mar 2023 22:24:08 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Sun, 12 Mar 2023 22:24:08 -0700 Received: from satheeshpaullabpc.. (unknown [10.28.34.33]) by maili.marvell.com (Postfix) with ESMTP id 766C85B692A; Sun, 12 Mar 2023 22:24:05 -0700 (PDT) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , Satheesh Paul Subject: [dpdk-dev] [PATCH 1/2] common/cnxk: support SPI to SA translation action Date: Mon, 13 Mar 2023 10:54:02 +0530 Message-ID: <20230313052403.230953-1-psatheesh@marvell.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 6kL3Nuzne0cPvxnT5QgUxAK1Zr9OHlQE X-Proofpoint-GUID: 6kL3Nuzne0cPvxnT5QgUxAK1Zr9OHlQE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-12_10,2023-03-10_01,2023-02-09_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Kiran Kumar K Support SPI to SA index translation action with SPI bits MS_28_25. Signed-off-by: Kiran Kumar K Reviewed-by: Satheesh Paul Reviewed-by: Nithin Dabilpuram --- drivers/common/cnxk/roc_npc.c | 4 ++++ drivers/common/cnxk/roc_npc.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/common/cnxk/roc_npc.c b/drivers/common/cnxk/roc_npc.c index 47536c8ce8..7228cffb57 100644 --- a/drivers/common/cnxk/roc_npc.c +++ b/drivers/common/cnxk/roc_npc.c @@ -438,6 +438,10 @@ npc_parse_spi_to_sa_action(struct roc_npc *roc_npc, const struct roc_npc_action vtag_act.act.vtag1_lid = ROC_NPC_SEC_ACTION_ALG2; break; case ROC_NPC_SEC_ACTION_ALG3: + vtag_act.act.vtag1_valid = false; + vtag_act.act.vtag1_lid = ROC_NPC_SEC_ACTION_ALG3; + break; + case ROC_NPC_SEC_ACTION_ALG4: vtag_act.act.vtag1_valid = false; vtag_act.act.vtag1_lid = 0; mbox = inl_dev->dev.mbox; diff --git a/drivers/common/cnxk/roc_npc.h b/drivers/common/cnxk/roc_npc.h index 61d0628f5f..26a43c12cb 100644 --- a/drivers/common/cnxk/roc_npc.h +++ b/drivers/common/cnxk/roc_npc.h @@ -235,6 +235,7 @@ enum roc_npc_sec_action_alg { ROC_NPC_SEC_ACTION_ALG1, ROC_NPC_SEC_ACTION_ALG2, ROC_NPC_SEC_ACTION_ALG3, + ROC_NPC_SEC_ACTION_ALG4, }; struct roc_npc_sec_action { -- 2.39.2