net/bnxt: update HWRM prep to use pointer
[dpdk.git] / drivers / net / bnxt / bnxt.h
index 68786a8..aede112 100644 (file)
@@ -188,13 +188,13 @@ enum bnxt_hw_context {
 struct bnxt_vlan_table_entry {
        uint16_t                tpid;
        uint16_t                vid;
-} __attribute__((packed));
+} __rte_packed;
 
 struct bnxt_vlan_antispoof_table_entry {
        uint16_t                tpid;
        uint16_t                vid;
        uint16_t                mask;
-} __attribute__((packed));
+} __rte_packed;
 
 struct bnxt_child_vf_info {
        void                    *req_buf;
@@ -594,7 +594,7 @@ struct bnxt {
 
        uint8_t                 mac_addr[RTE_ETHER_ADDR_LEN];
 
-       uint16_t                        hwrm_cmd_seq;
+       uint16_t                        chimp_cmd_seq;
        uint16_t                        kong_cmd_seq;
        void                            *hwrm_cmd_resp_addr;
        rte_iova_t                      hwrm_cmd_resp_dma_addr;
@@ -606,8 +606,10 @@ struct bnxt {
        uint16_t                        max_resp_len;
        uint16_t                        hwrm_max_ext_req_len;
 
-        /* default command timeout value of 50ms */
-#define HWRM_CMD_TIMEOUT               50000
+        /* default command timeout value of 500ms */
+#define DFLT_HWRM_CMD_TIMEOUT          500000
+        /* short command timeout value of 50ms */
+#define SHORT_HWRM_CMD_TIMEOUT         50000
        /* default HWRM request timeout value */
        uint32_t                        hwrm_cmd_timeout;
 
@@ -684,7 +686,6 @@ int bnxt_link_update(struct rte_eth_dev *eth_dev, int wait_to_complete,
                     bool exp_link_status);
 int bnxt_rcv_msg_from_vf(struct bnxt *bp, uint16_t vf_id, void *msg);
 int is_bnxt_in_error(struct bnxt *bp);
-uint16_t bnxt_rss_ctxts(const struct bnxt *bp);
 
 int bnxt_map_fw_health_status_regs(struct bnxt *bp);
 uint32_t bnxt_read_fw_status_reg(struct bnxt *bp, uint32_t index);