]> git.droids-corp.org - dpdk.git/commitdiff
common/cnxk: update mailbox version to 0xb
authorKiran Kumar K <kirankumark@marvell.com>
Mon, 25 Oct 2021 03:55:26 +0000 (09:25 +0530)
committerJerin Jacob <jerinj@marvell.com>
Fri, 29 Oct 2021 14:09:14 +0000 (16:09 +0200)
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/cnxk/roc_mbox.h

index bc4084845061793fd7c4e47f7ac1f8bb504e26f0..22f6ebcd929d92a33a22c7656c5473502cf04944 100644 (file)
@@ -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.