octeontx2-af: Use hashed field in MCAM key
[linux-2.6-block.git] / drivers / net / ethernet / marvell / octeontx2 / af / mbox.h
index 550cb11197bfc8902c20de21fb3cfd17708f54fe..38e064bdaf726d25d3b2de8c8b44859c46212874 100644 (file)
@@ -241,6 +241,9 @@ M(NPC_MCAM_READ_BASE_RULE, 0x6011, npc_read_base_steer_rule,            \
 M(NPC_MCAM_GET_STATS, 0x6012, npc_mcam_entry_stats,                     \
                                   npc_mcam_get_stats_req,              \
                                   npc_mcam_get_stats_rsp)              \
+M(NPC_GET_SECRET_KEY, 0x6013, npc_get_secret_key,                     \
+                                  npc_get_secret_key_req,              \
+                                  npc_get_secret_key_rsp)              \
 /* NIX mbox IDs (range 0x8000 - 0xFFFF) */                             \
 M(NIX_LF_ALLOC,                0x8000, nix_lf_alloc,                           \
                                 nix_lf_alloc_req, nix_lf_alloc_rsp)    \
@@ -428,6 +431,7 @@ struct get_hw_cap_rsp {
        struct mbox_msghdr hdr;
        u8 nix_fixed_txschq_mapping; /* Schq mapping fixed or flexible */
        u8 nix_shaping;              /* Is shaping and coloring supported */
+       u8 npc_hash_extract;    /* Is hash extract supported */
 };
 
 /* CGX mbox message formats */
@@ -1440,6 +1444,16 @@ struct npc_mcam_get_stats_rsp {
        u8 stat_ena; /* enabled */
 };
 
+struct npc_get_secret_key_req {
+       struct mbox_msghdr hdr;
+       u8 intf;
+};
+
+struct npc_get_secret_key_rsp {
+       struct mbox_msghdr hdr;
+       u64 secret_key[3];
+};
+
 enum ptp_op {
        PTP_OP_ADJFINE = 0,
        PTP_OP_GET_CLOCK = 1,