Imported Upstream version 16.11.2
[deb_dpdk.git] / drivers / net / thunderx / nicvf_struct.h
index c52545d..5bc6d57 100644 (file)
@@ -43,8 +43,8 @@
 #include <rte_memory.h>
 
 struct nicvf_rbdr {
-       uint64_t rbdr_status;
-       uint64_t rbdr_door;
+       uintptr_t rbdr_status;
+       uintptr_t rbdr_door;
        struct rbdr_entry_t *desc;
        nicvf_phys_addr_t phys;
        uint32_t buffsz;
@@ -58,8 +58,8 @@ struct nicvf_txq {
        union sq_entry_t *desc;
        nicvf_phys_addr_t phys;
        struct rte_mbuf **txbuffs;
-       uint64_t sq_head;
-       uint64_t sq_door;
+       uintptr_t sq_head;
+       uintptr_t sq_door;
        struct rte_mempool *pool;
        struct nicvf *nic;
        void (*pool_free)(struct nicvf_txq *sq);
@@ -74,8 +74,8 @@ struct nicvf_txq {
 
 struct nicvf_rxq {
        uint64_t mbuf_phys_off;
-       uint64_t cq_status;
-       uint64_t cq_door;
+       uintptr_t cq_status;
+       uintptr_t cq_door;
        nicvf_phys_addr_t phys;
        union cq_entry_t *desc;
        struct nicvf_rbdr *shared_rbdr;
@@ -113,12 +113,16 @@ struct nicvf {
        uint16_t subsystem_vendor_id;
        struct nicvf_rbdr *rbdr;
        struct nicvf_rss_reta_info rss_info;
-       struct rte_eth_dev *eth_dev;
        struct rte_intr_handle intr_handle;
        uint8_t cpi_alg;
        uint16_t mtu;
        bool vlan_filter_en;
        uint8_t mac_addr[ETHER_ADDR_LEN];
+       /* secondary queue set support */
+       uint8_t sqs_id;
+       uint8_t sqs_count;
+#define MAX_SQS_PER_VF 11
+       struct nicvf *snicvf[MAX_SQS_PER_VF];
 } __rte_cache_aligned;
 
 #endif /* _THUNDERX_NICVF_STRUCT_H */