DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 1/2] common/octeontx2: sync mbox with AF
@ 2021-10-25  3:55 kirankumark
  2021-10-25  3:55 ` [dpdk-dev] [PATCH 2/2] common/cnxk: " kirankumark
  2021-10-29 14:14 ` [dpdk-dev] [PATCH 1/2] common/octeontx2: " Jerin Jacob
  0 siblings, 2 replies; 4+ messages in thread
From: kirankumark @ 2021-10-25  3:55 UTC (permalink / raw)
  To: Jerin Jacob, Nithin Dabilpuram; +Cc: dev, Kiran Kumar K

From: Kiran Kumar K <kirankumark@marvell.com>

Sync mbox with AF, And bump up the version.

Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
---
 drivers/common/octeontx2/otx2_mbox.h | 30 ++++++++++++++++++----------
 1 file changed, 20 insertions(+), 10 deletions(-)

diff --git a/drivers/common/octeontx2/otx2_mbox.h b/drivers/common/octeontx2/otx2_mbox.h
index b435694db7..25b521a7fa 100644
--- a/drivers/common/octeontx2/otx2_mbox.h
+++ b/drivers/common/octeontx2/otx2_mbox.h
@@ -90,7 +90,7 @@ struct mbox_msghdr {
 #define OTX2_MBOX_RSP_SIG (0xbeef)
 	/* Signature, for validating corrupted msgs */
 	uint16_t __otx2_io sig;
-#define OTX2_MBOX_VERSION (0x000a)
+#define OTX2_MBOX_VERSION (0x000b)
 	/* Version of msg's structure for this ID */
 	uint16_t __otx2_io ver;
 	/* Offset of next msg within mailbox region */
@@ -356,6 +356,7 @@ struct ready_msg_rsp {
 };
 
 enum npc_pkind_type {
+	NPC_RX_CUSTOM_PRE_L2_PKIND = 55ULL,
 	NPC_RX_VLAN_EXDSA_PKIND = 56ULL,
 	NPC_RX_CHLEN24B_PKIND,
 	NPC_RX_CPT_HDR_PKIND,
@@ -373,18 +374,27 @@ enum npc_pkind_type {
 /* Struct to set pkind */
 struct npc_set_pkind {
 	struct mbox_msghdr hdr;
-#define OTX2_PRIV_FLAGS_DEFAULT  BIT_ULL(0)
-#define OTX2_PRIV_FLAGS_EDSA     BIT_ULL(1)
-#define OTX2_PRIV_FLAGS_HIGIG    BIT_ULL(2)
-#define OTX2_PRIV_FLAGS_FDSA     BIT_ULL(3)
-#define OTX2_PRIV_FLAGS_EXDSA    BIT_ULL(4)
-#define OTX2_PRIV_FLAGS_VLAN_EXDSA    BIT_ULL(5)
-#define OTX2_PRIV_FLAGS_CUSTOM   BIT_ULL(63)
+#define OTX2_PRIV_FLAGS_DEFAULT	   BIT_ULL(0)
+#define OTX2_PRIV_FLAGS_EDSA	   BIT_ULL(1)
+#define OTX2_PRIV_FLAGS_HIGIG	   BIT_ULL(2)
+#define OTX2_PRIV_FLAGS_FDSA	   BIT_ULL(3)
+#define OTX2_PRIV_FLAGS_EXDSA	   BIT_ULL(4)
+#define OTX2_PRIV_FLAGS_VLAN_EXDSA BIT_ULL(5)
+#define OTX2_PRIV_FLAGS_CUSTOM	   BIT_ULL(63)
 	uint64_t __otx2_io mode;
-#define PKIND_TX		BIT_ULL(0)
-#define PKIND_RX		BIT_ULL(1)
+#define PKIND_TX BIT_ULL(0)
+#define PKIND_RX BIT_ULL(1)
 	uint8_t __otx2_io dir;
 	uint8_t __otx2_io pkind; /* valid only in case custom flag */
+	uint8_t __otx2_io var_len_off;
+	/* Offset of custom header length field.
+	 * Valid only for pkind NPC_RX_CUSTOM_PRE_L2_PKIND
+	 */
+	uint8_t __otx2_io var_len_off_mask; /* Mask for length with in offset */
+	uint8_t __otx2_io shift_dir;
+	/* Shift direction to get length of the
+	 * header at var_len_off
+	 */
 };
 
 /* Structure for requesting resource provisioning.
-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dpdk-dev] [PATCH 2/2] common/cnxk: sync mbox with AF
  2021-10-25  3:55 [dpdk-dev] [PATCH 1/2] common/octeontx2: sync mbox with AF kirankumark
@ 2021-10-25  3:55 ` kirankumark
  2021-10-29 14:15   ` Jerin Jacob
  2021-10-29 14:14 ` [dpdk-dev] [PATCH 1/2] common/octeontx2: " Jerin Jacob
  1 sibling, 1 reply; 4+ messages in thread
From: kirankumark @ 2021-10-25  3:55 UTC (permalink / raw)
  To: Nithin Dabilpuram, Kiran Kumar K, Sunil Kumar Kori, Satha Rao; +Cc: dev

From: Kiran Kumar K <kirankumark@marvell.com>

Sync mbox with AF, And bump up the version.

Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
---
 drivers/common/cnxk/roc_mbox.h | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/drivers/common/cnxk/roc_mbox.h b/drivers/common/cnxk/roc_mbox.h
index bc40848450..22f6ebcd92 100644
--- a/drivers/common/cnxk/roc_mbox.h
+++ b/drivers/common/cnxk/roc_mbox.h
@@ -28,7 +28,7 @@ struct mbox_msghdr {
 #define MBOX_RSP_SIG (0xbeef)
 	/* Signature, for validating corrupted msgs */
 	uint16_t __io sig;
-#define MBOX_VERSION (0x000a)
+#define MBOX_VERSION (0x000b)
 	/* Version of msg's structure for this ID */
 	uint16_t __io ver;
 	/* Offset of next msg within mailbox region */
@@ -283,6 +283,7 @@ struct ready_msg_rsp {
 };
 
 enum npc_pkind_type {
+	NPC_RX_CUSTOM_PRE_L2_PKIND = 55ULL,
 	NPC_RX_VLAN_EXDSA_PKIND = 56ULL,
 	NPC_RX_CHLEN24B_PKIND,
 	NPC_RX_CPT_HDR_PKIND,
@@ -309,6 +310,15 @@ struct npc_set_pkind {
 #define PKIND_RX BIT_ULL(1)
 	uint8_t __io dir;
 	uint8_t __io pkind; /* valid only in case custom flag */
+	uint8_t __io var_len_off;
+	/* Offset of custom header length field.
+	 * Valid only for pkind NPC_RX_CUSTOM_PRE_L2_PKIND
+	 */
+	uint8_t __io var_len_off_mask; /* Mask for length with in offset */
+	uint8_t __io shift_dir;
+	/* Shift direction to get length of the
+	 * header at var_len_off
+	 */
 };
 
 /* Structure for requesting resource provisioning.
-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH 1/2] common/octeontx2: sync mbox with AF
  2021-10-25  3:55 [dpdk-dev] [PATCH 1/2] common/octeontx2: sync mbox with AF kirankumark
  2021-10-25  3:55 ` [dpdk-dev] [PATCH 2/2] common/cnxk: " kirankumark
@ 2021-10-29 14:14 ` Jerin Jacob
  1 sibling, 0 replies; 4+ messages in thread
From: Jerin Jacob @ 2021-10-29 14:14 UTC (permalink / raw)
  To: Kiran Kumar K; +Cc: Jerin Jacob, Nithin Dabilpuram, dpdk-dev

On Mon, Oct 25, 2021 at 9:25 AM <kirankumark@marvell.com> wrote:
>
> From: Kiran Kumar K <kirankumark@marvell.com>
>
> Sync mbox with AF, And bump up the version.
>
> Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>

Updated as
    common/octeontx2: update mailbox version to 0xb

    Sync mailbox definition with AF kernel driver.

    Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
    Acked-by: Jerin Jacob <jerinj@marvell.com>


> ---
>  drivers/common/octeontx2/otx2_mbox.h | 30 ++++++++++++++++++----------
>  1 file changed, 20 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/common/octeontx2/otx2_mbox.h b/drivers/common/octeontx2/otx2_mbox.h
> index b435694db7..25b521a7fa 100644
> --- a/drivers/common/octeontx2/otx2_mbox.h
> +++ b/drivers/common/octeontx2/otx2_mbox.h
> @@ -90,7 +90,7 @@ struct mbox_msghdr {
>  #define OTX2_MBOX_RSP_SIG (0xbeef)
>         /* Signature, for validating corrupted msgs */
>         uint16_t __otx2_io sig;
> -#define OTX2_MBOX_VERSION (0x000a)
> +#define OTX2_MBOX_VERSION (0x000b)
>         /* Version of msg's structure for this ID */
>         uint16_t __otx2_io ver;
>         /* Offset of next msg within mailbox region */
> @@ -356,6 +356,7 @@ struct ready_msg_rsp {
>  };
>
>  enum npc_pkind_type {
> +       NPC_RX_CUSTOM_PRE_L2_PKIND = 55ULL,
>         NPC_RX_VLAN_EXDSA_PKIND = 56ULL,
>         NPC_RX_CHLEN24B_PKIND,
>         NPC_RX_CPT_HDR_PKIND,
> @@ -373,18 +374,27 @@ enum npc_pkind_type {
>  /* Struct to set pkind */
>  struct npc_set_pkind {
>         struct mbox_msghdr hdr;
> -#define OTX2_PRIV_FLAGS_DEFAULT  BIT_ULL(0)
> -#define OTX2_PRIV_FLAGS_EDSA     BIT_ULL(1)
> -#define OTX2_PRIV_FLAGS_HIGIG    BIT_ULL(2)
> -#define OTX2_PRIV_FLAGS_FDSA     BIT_ULL(3)
> -#define OTX2_PRIV_FLAGS_EXDSA    BIT_ULL(4)
> -#define OTX2_PRIV_FLAGS_VLAN_EXDSA    BIT_ULL(5)
> -#define OTX2_PRIV_FLAGS_CUSTOM   BIT_ULL(63)
> +#define OTX2_PRIV_FLAGS_DEFAULT           BIT_ULL(0)
> +#define OTX2_PRIV_FLAGS_EDSA      BIT_ULL(1)
> +#define OTX2_PRIV_FLAGS_HIGIG     BIT_ULL(2)
> +#define OTX2_PRIV_FLAGS_FDSA      BIT_ULL(3)
> +#define OTX2_PRIV_FLAGS_EXDSA     BIT_ULL(4)
> +#define OTX2_PRIV_FLAGS_VLAN_EXDSA BIT_ULL(5)
> +#define OTX2_PRIV_FLAGS_CUSTOM    BIT_ULL(63)
>         uint64_t __otx2_io mode;
> -#define PKIND_TX               BIT_ULL(0)
> -#define PKIND_RX               BIT_ULL(1)
> +#define PKIND_TX BIT_ULL(0)
> +#define PKIND_RX BIT_ULL(1)
>         uint8_t __otx2_io dir;
>         uint8_t __otx2_io pkind; /* valid only in case custom flag */
> +       uint8_t __otx2_io var_len_off;
> +       /* Offset of custom header length field.
> +        * Valid only for pkind NPC_RX_CUSTOM_PRE_L2_PKIND
> +        */
> +       uint8_t __otx2_io var_len_off_mask; /* Mask for length with in offset */
> +       uint8_t __otx2_io shift_dir;
> +       /* Shift direction to get length of the
> +        * header at var_len_off
> +        */
>  };
>
>  /* Structure for requesting resource provisioning.
> --
> 2.25.1
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH 2/2] common/cnxk: sync mbox with AF
  2021-10-25  3:55 ` [dpdk-dev] [PATCH 2/2] common/cnxk: " kirankumark
@ 2021-10-29 14:15   ` Jerin Jacob
  0 siblings, 0 replies; 4+ messages in thread
From: Jerin Jacob @ 2021-10-29 14:15 UTC (permalink / raw)
  To: Kiran Kumar K, Ferruh Yigit
  Cc: Nithin Dabilpuram, Sunil Kumar Kori, Satha Rao, dpdk-dev

On Mon, Oct 25, 2021 at 9:25 AM <kirankumark@marvell.com> wrote:
>
> From: Kiran Kumar K <kirankumark@marvell.com>
>
> Sync mbox with AF, And bump up the version.
>
> Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>


Updated as
    common/cnxk: update mailbox version to 0xb

    Sync mailbox definition with AF kernel driver.

    Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
    Acked-by: Jerin Jacob <jerinj@marvell.com>

Series applied to dpdk-next-net-mrvl/for-next-net. Thanks.


> ---
>  drivers/common/cnxk/roc_mbox.h | 12 +++++++++++-
>  1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/common/cnxk/roc_mbox.h b/drivers/common/cnxk/roc_mbox.h
> index bc40848450..22f6ebcd92 100644
> --- a/drivers/common/cnxk/roc_mbox.h
> +++ b/drivers/common/cnxk/roc_mbox.h
> @@ -28,7 +28,7 @@ struct mbox_msghdr {
>  #define MBOX_RSP_SIG (0xbeef)
>         /* Signature, for validating corrupted msgs */
>         uint16_t __io sig;
> -#define MBOX_VERSION (0x000a)
> +#define MBOX_VERSION (0x000b)
>         /* Version of msg's structure for this ID */
>         uint16_t __io ver;
>         /* Offset of next msg within mailbox region */
> @@ -283,6 +283,7 @@ struct ready_msg_rsp {
>  };
>
>  enum npc_pkind_type {
> +       NPC_RX_CUSTOM_PRE_L2_PKIND = 55ULL,
>         NPC_RX_VLAN_EXDSA_PKIND = 56ULL,
>         NPC_RX_CHLEN24B_PKIND,
>         NPC_RX_CPT_HDR_PKIND,
> @@ -309,6 +310,15 @@ struct npc_set_pkind {
>  #define PKIND_RX BIT_ULL(1)
>         uint8_t __io dir;
>         uint8_t __io pkind; /* valid only in case custom flag */
> +       uint8_t __io var_len_off;
> +       /* Offset of custom header length field.
> +        * Valid only for pkind NPC_RX_CUSTOM_PRE_L2_PKIND
> +        */
> +       uint8_t __io var_len_off_mask; /* Mask for length with in offset */
> +       uint8_t __io shift_dir;
> +       /* Shift direction to get length of the
> +        * header at var_len_off
> +        */
>  };
>
>  /* Structure for requesting resource provisioning.
> --
> 2.25.1
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-10-29 14:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-25  3:55 [dpdk-dev] [PATCH 1/2] common/octeontx2: sync mbox with AF kirankumark
2021-10-25  3:55 ` [dpdk-dev] [PATCH 2/2] common/cnxk: " kirankumark
2021-10-29 14:15   ` Jerin Jacob
2021-10-29 14:14 ` [dpdk-dev] [PATCH 1/2] common/octeontx2: " 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).