net/bnxt: add Rx queue create/destroy
[dpdk.git] / drivers / net / bnxt / bnxt.h
index bfce91e..f7cf9d1 100644 (file)
 #include <rte_lcore.h>
 #include <rte_spinlock.h>
 
+#include "bnxt_cpr.h"
+
 #define BNXT_MAX_MTU           9000
 #define VLAN_TAG_SIZE          4
 
+enum bnxt_hw_context {
+       HW_CONTEXT_NONE     = 0,
+       HW_CONTEXT_IS_RSS   = 1,
+       HW_CONTEXT_IS_COS   = 2,
+       HW_CONTEXT_IS_LB    = 3,
+};
+
 struct bnxt_vf_info {
        uint16_t                fw_fid;
        uint8_t                 mac_addr[ETHER_ADDR_LEN];
@@ -130,6 +139,21 @@ struct bnxt {
        unsigned int            tx_cp_nr_rings;
        struct bnxt_tx_queue **tx_queues;
 
+       /* Default completion ring */
+       struct bnxt_cp_ring_info        *def_cp_ring;
+
+       unsigned int            nr_vnics;
+
+       struct bnxt_vnic_info   *vnic_info;
+       STAILQ_HEAD(, bnxt_vnic_info)   free_vnic_list;
+
+       struct bnxt_filter_info *filter_info;
+       STAILQ_HEAD(, bnxt_filter_info) free_filter_list;
+
+       /* VNIC pointer for flow filter (VMDq) pools */
+#define MAX_FF_POOLS   ETH_64_POOLS
+       STAILQ_HEAD(, bnxt_vnic_info)   ff_pool[MAX_FF_POOLS];
+
 #define MAX_NUM_MAC_ADDR       32
        uint8_t                 mac_addr[ETHER_ADDR_LEN];