net/mlx5: convert configuration objects to unified malloc
[dpdk.git] / drivers / crypto / octeontx2 / otx2_cryptodev_qp.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (C) 2020 Marvell International Ltd.
3  */
4
5 #ifndef _OTX2_CRYPTODEV_QP_H_
6 #define _OTX2_CRYPTODEV_QP_H_
7
8 #include <rte_common.h>
9 #include <rte_mempool.h>
10 #include <rte_spinlock.h>
11
12 #include "cpt_common.h"
13
14 struct otx2_cpt_qp {
15         uint32_t id;
16         /**< Queue pair id */
17         uintptr_t base;
18         /**< Base address where BAR is mapped */
19         void *lmtline;
20         /**< Address of LMTLINE */
21         rte_iova_t lf_nq_reg;
22         /**< LF enqueue register address */
23         struct pending_queue pend_q;
24         /**< Pending queue */
25         struct rte_mempool *sess_mp;
26         /**< Session mempool */
27         struct rte_mempool *sess_mp_priv;
28         /**< Session private data mempool */
29         struct cpt_qp_meta_info meta_info;
30         /**< Metabuf info required to support operations on the queue pair */
31         rte_iova_t iq_dma_addr;
32         /**< Instruction queue address */
33 };
34
35 #endif /* _OTX2_CRYPTODEV_QP_H_ */