common/octeontx2: upgrade mbox definition to version 9
diff mbox series

Message ID 1600278499-15104-1-git-send-email-hkalra@marvell.com
State Accepted, archived
Delegated to: Jerin Jacob
Headers show
Series
  • common/octeontx2: upgrade mbox definition to version 9
Related show

Checks

Context Check Description
ci/travis-robot success Travis build: passed
ci/iol-testing success Testing PASS
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Harman Kalra Sept. 16, 2020, 5:48 p.m. UTC
Update mail box data structures to sync with af driver mbox
changes done to retrieve VF's base steering rule.

Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Signed-off-by: Harman Kalra <hkalra@marvell.com>
---
 drivers/common/octeontx2/otx2_mbox.h | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

Comments

Jerin Jacob Sept. 22, 2020, 8:54 a.m. UTC | #1
On Wed, Sep 16, 2020 at 11:18 PM Harman Kalra <hkalra@marvell.com> wrote:
>
> Update mail box data structures to sync with af driver mbox
> changes done to retrieve VF's base steering rule.
>
> Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
> Signed-off-by: Harman Kalra <hkalra@marvell.com>

Applied to dpdk-next-net-mrvl/master. Thanks


> ---
>  drivers/common/octeontx2/otx2_mbox.h | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/common/octeontx2/otx2_mbox.h b/drivers/common/octeontx2/otx2_mbox.h
> index 34b1d0663..5d66caebd 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 (0x0007)
> +#define OTX2_MBOX_VERSION (0x0009)
>         /* Version of msg's structure for this ID */
>         uint16_t __otx2_io ver;
>         /* Offset of next msg within mailbox region */
> @@ -245,6 +245,8 @@ M(NPC_MCAM_READ_ENTRY,        0x600f, npc_mcam_read_entry,                  \
>  M(NPC_SET_PKIND,          0x6010, npc_set_pkind,                        \
>                                   npc_set_pkind,                        \
>                                   msg_rsp)                              \
> +M(NPC_MCAM_READ_BASE_RULE, 0x6011, npc_read_base_steer_rule, msg_req,   \
> +                                  npc_mcam_read_base_rule_rsp)         \
>  /* NIX mbox IDs (range 0x8000 - 0xFFFF) */                             \
>  M(NIX_LF_ALLOC,                0x8000, nix_lf_alloc, nix_lf_alloc_req,         \
>                                 nix_lf_alloc_rsp)                       \
> @@ -767,6 +769,7 @@ struct nix_lf_alloc_rsp {
>         uint8_t __otx2_io cgx_links;  /* No. of CGX links present in HW */
>         uint8_t __otx2_io lbk_links;  /* No. of LBK links present in HW */
>         uint8_t __otx2_io sdp_links;  /* No. of SDP links present in HW */
> +       uint8_t __otx2_io tx_link;    /* Transmit channel link number */
>  };
>
>  struct nix_lf_free_req {
> @@ -1544,6 +1547,11 @@ struct npc_mcam_read_entry_rsp {
>         uint8_t __otx2_io enable;
>  };
>
> +struct npc_mcam_read_base_rule_rsp {
> +       struct mbox_msghdr hdr;
> +       struct mcam_entry entry_data;
> +};
> +
>  /* TIM mailbox error codes
>   * Range 801 - 900.
>   */
> --
> 2.18.0
>

Patch
diff mbox series

diff --git a/drivers/common/octeontx2/otx2_mbox.h b/drivers/common/octeontx2/otx2_mbox.h
index 34b1d0663..5d66caebd 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 (0x0007)
+#define OTX2_MBOX_VERSION (0x0009)
 	/* Version of msg's structure for this ID */
 	uint16_t __otx2_io ver;
 	/* Offset of next msg within mailbox region */
@@ -245,6 +245,8 @@  M(NPC_MCAM_READ_ENTRY,	  0x600f, npc_mcam_read_entry,			\
 M(NPC_SET_PKIND,          0x6010, npc_set_pkind,                        \
 				  npc_set_pkind,                        \
 				  msg_rsp)                              \
+M(NPC_MCAM_READ_BASE_RULE, 0x6011, npc_read_base_steer_rule, msg_req,   \
+				   npc_mcam_read_base_rule_rsp)         \
 /* NIX mbox IDs (range 0x8000 - 0xFFFF) */				\
 M(NIX_LF_ALLOC,		0x8000, nix_lf_alloc, nix_lf_alloc_req,		\
 				nix_lf_alloc_rsp)			\
@@ -767,6 +769,7 @@  struct nix_lf_alloc_rsp {
 	uint8_t __otx2_io cgx_links;  /* No. of CGX links present in HW */
 	uint8_t __otx2_io lbk_links;  /* No. of LBK links present in HW */
 	uint8_t __otx2_io sdp_links;  /* No. of SDP links present in HW */
+	uint8_t __otx2_io tx_link;    /* Transmit channel link number */
 };
 
 struct nix_lf_free_req {
@@ -1544,6 +1547,11 @@  struct npc_mcam_read_entry_rsp {
 	uint8_t __otx2_io enable;
 };
 
+struct npc_mcam_read_base_rule_rsp {
+	struct mbox_msghdr hdr;
+	struct mcam_entry entry_data;
+};
+
 /* TIM mailbox error codes
  * Range 801 - 900.
  */