net/vhost: fix potential memory leak on close
[dpdk.git] / drivers / common / qat / qat_qp.h
index 8b9ab79..575d690 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);
@@ -52,6 +54,7 @@ struct qat_queue {
        uint32_t        modulo_mask;
        uint32_t        msg_size;
        uint32_t        queue_size;
+       uint8_t         trailz;
        uint8_t         hw_bundle_number;
        uint8_t         hw_queue_number;
        /* HW queue aka ring offset on bundle */
@@ -77,6 +80,7 @@ struct qat_qp {
        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];
@@ -85,6 +89,9 @@ extern const struct qat_qp_hw_data qat_gen3_qps[][ADF_MAX_QPS_ON_ANY_SERVICE];
 uint16_t
 qat_enqueue_op_burst(void *qp, void **ops, uint16_t nb_ops);
 
+uint16_t
+qat_enqueue_comp_op_burst(void *qp, void **ops, uint16_t nb_ops);
+
 uint16_t
 qat_dequeue_op_burst(void *qp, void **ops, uint16_t nb_ops);
 
@@ -100,6 +107,9 @@ int
 qat_qps_per_service(const struct qat_qp_hw_data *qp_hw_data,
                        enum qat_service_type service);
 
+int
+qat_cq_get_fw_version(struct qat_qp *qp);
+
 /* Needed for weak function*/
 int
 qat_comp_process_response(void **op __rte_unused, uint8_t *resp __rte_unused,