* [dpdk-dev] [PATCH] net/cnxk: add spec for SPI to SA action for cnxk
@ 2023-06-05 7:40 psatheesh
2023-06-05 15:14 ` Jerin Jacob
0 siblings, 1 reply; 2+ messages in thread
From: psatheesh @ 2023-06-05 7:40 UTC (permalink / raw)
To: Nithin Kumar Dabilpuram, Kiran Kumar K, Sunil Kumar Kori, Satha Rao; +Cc: dev
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(-)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] net/cnxk: add spec for SPI to SA action for cnxk
2023-06-05 7:40 [dpdk-dev] [PATCH] net/cnxk: add spec for SPI to SA action for cnxk psatheesh
@ 2023-06-05 15:14 ` Jerin Jacob
0 siblings, 0 replies; 2+ messages in thread
From: Jerin Jacob @ 2023-06-05 15:14 UTC (permalink / raw)
To: psatheesh
Cc: Nithin Kumar Dabilpuram, Kiran Kumar K, Sunil Kumar Kori, Satha Rao, dev
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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-05 15:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-05 7:40 [dpdk-dev] [PATCH] net/cnxk: add spec for SPI to SA action for cnxk psatheesh
2023-06-05 15:14 ` Jerin Jacob
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).