pmdinfogen: add SPDX license tag
[dpdk.git] / drivers / common / qat / qat_qp.h
index 5066f06..0b95ea3 100644 (file)
@@ -12,6 +12,8 @@ struct qat_pci_device;
 #define QAT_CSR_HEAD_WRITE_THRESH 32U
 /* number of requests to accumulate before writing head CSR */
 
+#define QAT_QP_MIN_INFL_THRESHOLD      256
+
 typedef int (*build_request_t)(void *op,
                uint8_t *req, void *op_cookie,
                enum qat_device_gen qat_dev_gen);
@@ -63,7 +65,6 @@ struct qat_queue {
 
 struct qat_qp {
        void                    *mmap_bar_addr;
-       uint16_t                inflights16;
        struct qat_queue        tx_q;
        struct qat_queue        rx_q;
        struct qat_common_stats stats;
@@ -75,7 +76,10 @@ struct qat_qp {
        enum qat_service_type service_type;
        struct qat_pci_device *qat_dev;
        /**< qat device this qp is on */
+       uint32_t enqueued;
+       uint32_t dequeued __rte_aligned(4);
        uint16_t max_inflights;
+       uint16_t min_enq_burst_threshold;
 } __rte_cache_aligned;
 
 extern const struct qat_qp_hw_data qat_gen1_qps[][ADF_MAX_QPS_ON_ANY_SERVICE];