From a232ca8bd73f9bf20b0aa60c1dd327107a932f97 Mon Sep 17 00:00:00 2001 From: Fiona Trahe Date: Fri, 13 Jul 2018 03:28:20 +0100 Subject: [PATCH] compress/qat: add enqueue/dequeue functions Wrap generic qat enqueue/dequeue functions with compressdev enqueue and dequeue fns. Signed-off-by: Fiona Trahe Signed-off-by: Tomasz Jozwiak --- drivers/compress/qat/qat_comp_pmd.c | 14 ++++++++++++++ drivers/compress/qat/qat_comp_pmd.h | 8 ++++++++ 2 files changed, 22 insertions(+) diff --git a/drivers/compress/qat/qat_comp_pmd.c b/drivers/compress/qat/qat_comp_pmd.c index 482ebd1a9d..086b6cfd28 100644 --- a/drivers/compress/qat/qat_comp_pmd.c +++ b/drivers/compress/qat/qat_comp_pmd.c @@ -213,3 +213,17 @@ qat_comp_dev_info_get(struct rte_compressdev *dev, info->capabilities = comp_dev->qat_dev_capabilities; } } + +uint16_t +qat_comp_pmd_enqueue_op_burst(void *qp, struct rte_comp_op **ops, + uint16_t nb_ops) +{ + return qat_enqueue_op_burst(qp, (void **)ops, nb_ops); +} + +uint16_t +qat_comp_pmd_dequeue_op_burst(void *qp, struct rte_comp_op **ops, + uint16_t nb_ops) +{ + return qat_dequeue_op_burst(qp, (void **)ops, nb_ops); +} diff --git a/drivers/compress/qat/qat_comp_pmd.h b/drivers/compress/qat/qat_comp_pmd.h index 22576f44bc..f360c2982c 100644 --- a/drivers/compress/qat/qat_comp_pmd.h +++ b/drivers/compress/qat/qat_comp_pmd.h @@ -54,5 +54,13 @@ void qat_comp_dev_info_get(struct rte_compressdev *dev, struct rte_compressdev_info *info); +uint16_t +qat_comp_pmd_enqueue_op_burst(void *qp, struct rte_comp_op **ops, + uint16_t nb_ops); + +uint16_t +qat_comp_pmd_dequeue_op_burst(void *qp, struct rte_comp_op **ops, + uint16_t nb_ops); + #endif #endif /* _QAT_COMP_PMD_H_ */ -- 2.20.1