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

Message ID 20230605074010.3059839-1-psatheesh@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: Jerin Jacob
Headers
Series net/cnxk: add spec for SPI to SA action for cnxk |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-testing success Testing PASS
ci/github-robot: build success github build: passed
ci/iol-intel-Performance success Performance Testing PASS
ci/Intel-compilation success Compilation OK
ci/iol-broadcom-Functional success Functional Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/intel-Testing success Testing PASS
ci/intel-Functional success Functional PASS
ci/iol-aarch64-compile-testing success Testing PASS
ci/iol-unit-testing success Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS
ci/iol-aarch-unit-testing success Testing PASS

Commit Message

Satheesh Paul Antonysamy June 5, 2023, 7:40 a.m. UTC
  From: Kiran Kumar K <kirankumark@marvell.com>

Adding spec for MS_28_25 Flow action for cnxk device.

Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
Reviewed-by: Nithin Kumar Dabilpuram <ndabilpuram@marvell.com>
---
 drivers/net/cnxk/rte_pmd_cnxk.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
  

Comments

Jerin Jacob June 5, 2023, 3:14 p.m. UTC | #1
On Mon, Jun 5, 2023 at 1:10 PM <psatheesh@marvell.com> wrote:
>
> From: Kiran Kumar K <kirankumark@marvell.com>
>
> Adding spec for MS_28_25 Flow action for cnxk device.
>
> Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
> Reviewed-by: Nithin Kumar Dabilpuram <ndabilpuram@marvell.com>

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 <kirankumark@marvell.com>
    Reviewed-by: Nithin Kumar Dabilpuram <ndabilpuram@marvell.com>

> ---
>  drivers/net/cnxk/rte_pmd_cnxk.h | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/cnxk/rte_pmd_cnxk.h b/drivers/net/cnxk/rte_pmd_cnxk.h
> index 8770425dfb..d7eadd582d 100644
> --- a/drivers/net/cnxk/rte_pmd_cnxk.h
> +++ b/drivers/net/cnxk/rte_pmd_cnxk.h
> @@ -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
>
  

Patch

diff --git a/drivers/net/cnxk/rte_pmd_cnxk.h b/drivers/net/cnxk/rte_pmd_cnxk.h
index 8770425dfb..d7eadd582d 100644
--- a/drivers/net/cnxk/rte_pmd_cnxk.h
+++ b/drivers/net/cnxk/rte_pmd_cnxk.h
@@ -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 {