git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drivers: fix return of unsupported features on QAT GEN4
[dpdk.git]
/
drivers
/
compress
/
qat
/
qat_comp_pmd.h
diff --git
a/drivers/compress/qat/qat_comp_pmd.h
b/drivers/compress/qat/qat_comp_pmd.h
index
5a4bc31
..
252b4b2
100644
(file)
--- a/
drivers/compress/qat/qat_comp_pmd.h
+++ b/
drivers/compress/qat/qat_comp_pmd.h
@@
-5,13
+5,16
@@
#ifndef _QAT_COMP_PMD_H_
#define _QAT_COMP_PMD_H_
#ifndef _QAT_COMP_PMD_H_
#define _QAT_COMP_PMD_H_
-#ifdef RTE_LIB
RTE
_COMPRESSDEV
+#ifdef RTE_LIB_COMPRESSDEV
#include <rte_compressdev.h>
#include <rte_compressdev_pmd.h>
#include "qat_device.h"
#include <rte_compressdev.h>
#include <rte_compressdev_pmd.h>
#include "qat_device.h"
+/**< Intel(R) QAT Compression PMD driver name */
+#define COMPRESSDEV_NAME_QAT_PMD compress_qat
+
/** private data structure for a QAT compression device.
* This QAT device is a device offering only a compression service,
* there can be one of these on each qat_pci_device (VF).
/** private data structure for a QAT compression device.
* This QAT device is a device offering only a compression service,
* there can be one of these on each qat_pci_device (VF).
@@
-21,25
+24,25
@@
struct qat_comp_dev_private {
/**< The qat pci device hosting the service */
struct rte_compressdev *compressdev;
/**< The pointer to this compression device structure */
/**< The qat pci device hosting the service */
struct rte_compressdev *compressdev;
/**< The pointer to this compression device structure */
+ const struct rte_compressdev_capabilities *qat_dev_capabilities;
+ /* QAT device compression capabilities */
const struct rte_memzone *interm_buff_mz;
/**< The device's memory for intermediate buffers */
struct rte_mempool *xformpool;
/**< The device's pool for qat_comp_xforms */
const struct rte_memzone *interm_buff_mz;
/**< The device's memory for intermediate buffers */
struct rte_mempool *xformpool;
/**< The device's pool for qat_comp_xforms */
-
+ struct rte_mempool *streampool;
+ /**< The device's pool for qat_comp_streams */
+ const struct rte_memzone *capa_mz;
+ /* Shared memzone for storing capabilities */
+ uint16_t min_enq_burst_threshold;
};
};
-void
-qat_comp_stats_reset(struct rte_compressdev *dev);
-
-void
-qat_comp_stats_get(struct rte_compressdev *dev,
- struct rte_compressdev_stats *stats);
int
int
-qat_comp_qp_release(struct rte_compressdev *dev, uint16_t queue_pair_id);
+qat_comp_dev_create(struct qat_pci_device *qat_pci_dev,
+ struct qat_dev_cmd_param *qat_dev_cmd_param);
int
int
-qat_comp_qp_setup(struct rte_compressdev *dev, uint16_t qp_id,
- uint32_t max_inflight_ops, int socket_id);
+qat_comp_dev_destroy(struct qat_pci_device *qat_pci_dev);
#endif
#endif /* _QAT_COMP_PMD_H_ */
#endif
#endif /* _QAT_COMP_PMD_H_ */