net/cnxk: add spec for SPI to SA action for cnxk
Checks
Commit Message
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
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
>
@@ -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 {