net/cnxk: add spec for SPI to SA action for cnxk
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.
Signed-off-by Kiran Kumar K <[email protected]>
Reviewed-by Nithin Kumar Dabilpuram <[email protected]>
--- drivers/net/cnxk/rte_pmd_cnxk.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/net/cnxk/rte_pmd_cnxk.h +6 -1
@@ -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
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_25Flow action for cnxk device.Signed-off-by Kiran Kumar K <[email protected]>Reviewed-by Nithin Kumar Dabilpuram <[email protected]>
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.
Signed-off-by Kiran Kumar K <[email protected]>
Reviewed-by Nithin Kumar Dabilpuram <[email protected]>
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@@ -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