diff mbox series

[2/2] common/cnxk: sync mbox with AF

Message ID 20211025035526.3169168-2-kirankumark@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: Jerin Jacob
Headers show
Series [1/2] common/octeontx2: sync mbox with AF | expand

Checks

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

Commit Message

Kiran Kumar Kokkilagadda Oct. 25, 2021, 3:55 a.m. UTC
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(-)

Comments

Jerin Jacob Oct. 29, 2021, 2:15 p.m. UTC | #1
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
>
diff mbox series

Patch

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.