Skip to contentSkip to conversation

net/cnxk: add spec for SPI to SA action for cnxk

PATCH In review [email protected] 2 participants 2 messages Jun 5, 2023 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/cnxk: add spec for SPI to SA action for cnxk

From: Kiran Kumar K <[email protected]>

Adding spec for MS_28_25 Flow action for cnxk device.

---
 drivers/net/cnxk/rte_pmd_cnxk.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/net/cnxk/rte_pmd_cnxk.h +6 -1
index 8770425dfb..d7eadd582d 100644
@@ -34,12 +34,17 @@ enum rte_pmd_cnxk_sec_action_alg {
 	 *  SA_alg = { 7'b0, SA_mcam[24:0] + SPI[27:25]}
 	 */
 	RTE_PMD_CNXK_SEC_ACTION_ALG2,
+	/** SPI<28:25> segment the sequence number space.
+	 * Initial SA_index is from SA_XOR if enabled.
+	 * SA_alg = { 7'b0, SA_mcam[24:0] + SPI[28:25]}
+	 */
+	RTE_PMD_CNXK_SEC_ACTION_ALG3,
 	/** The inbound SPI maybe "random", therefore we want the MCAM to be
 	 * capable of remapping the SPI to an arbitrary SA_index.
 	 * SPI to SA is done using a lookup in NIX/NPC cam entry with key as
 	 * SPI, MATCH_ID, LFID.
 	 */
-	RTE_PMD_CNXK_SEC_ACTION_ALG3,
+	RTE_PMD_CNXK_SEC_ACTION_ALG4,
 };
 
 struct rte_pmd_cnxk_sec_action {
Signature · 1 line
2.39.2
Reviewed-by Nithin Kumar Dabilpuram on v1 1/1
#1 lore raw
Quoted 7 lines · On Mon, Jun 5, 2023 at 1:10 PM <[email protected]> wrote:

From: Kiran Kumar K <[email protected]>

Adding spec for MS_28_25 Flow action for cnxk device.

Updated the git commit as follows and applied to
dpdk-next-net-mrvl/for-next-net. Thanks

net/cnxk: support new SPI to SA action as ALG4

Support MS_28_25 SPI to SA action as RTE_PMD_CNXK_SEC_ACTION_ALG4.

Quoted 30 lines
---
 drivers/net/cnxk/rte_pmd_cnxk.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/net/cnxk/rte_pmd_cnxk.h +6 -2
index 8770425dfb..d7eadd582d 100644
@@ -34,12 +34,17 @@ enum rte_pmd_cnxk_sec_action_alg {
         *  SA_alg = { 7'b0, SA_mcam[24:0] + SPI[27:25]}
         */
        RTE_PMD_CNXK_SEC_ACTION_ALG2,
+       /** SPI<28:25> segment the sequence number space.
+        * Initial SA_index is from SA_XOR if enabled.
+        * SA_alg = { 7'b0, SA_mcam[24:0] + SPI[28:25]}
+        */
+       RTE_PMD_CNXK_SEC_ACTION_ALG3,
        /** The inbound SPI maybe "random", therefore we want the MCAM to be
         * capable of remapping the SPI to an arbitrary SA_index.
         * SPI to SA is done using a lookup in NIX/NPC cam entry with key as
         * SPI, MATCH_ID, LFID.
         */
-       RTE_PMD_CNXK_SEC_ACTION_ALG3,
+       RTE_PMD_CNXK_SEC_ACTION_ALG4,
 };
 
 struct rte_pmd_cnxk_sec_action {
--

2.39.2