[PATCH 20.11] common/octeontx2: update mailbox version to 0xb
kirankumark at marvell.com
kirankumark at marvell.com
Thu Mar 3 05:15:13 CET 2022
From: Kiran Kumar K <kirankumark at marvell.com>
Sync mailbox definition with AF kernel driver.
Signed-off-by: Kiran Kumar K <kirankumark at marvell.com>
---
drivers/common/octeontx2/otx2_mbox.h | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/common/octeontx2/otx2_mbox.h b/drivers/common/octeontx2/otx2_mbox.h
index 51b25ab422..781c18180d 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 */
@@ -368,6 +368,15 @@ struct npc_set_pkind {
#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
More information about the stable
mailing list