]> git.proxmox.com Git - ceph.git/blame - ceph/src/spdk/dpdk/app/test-crypto-perf/cperf.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / dpdk / app / test-crypto-perf / cperf.h
CommitLineData
11fdf7f2
TL
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2016-2017 Intel Corporation
3 */
4
5#ifndef _CPERF_
6#define _CPERF_
7
8#include <rte_crypto.h>
9
10#include "cperf_ops.h"
11
12struct cperf_options;
13struct cperf_test_vector;
14struct cperf_op_fns;
15
16typedef void *(*cperf_constructor_t)(
17 struct rte_mempool *sess_mp,
9f95a23c 18 struct rte_mempool *sess_priv_mp,
11fdf7f2
TL
19 uint8_t dev_id,
20 uint16_t qp_id,
21 const struct cperf_options *options,
22 const struct cperf_test_vector *t_vec,
23 const struct cperf_op_fns *op_fns);
24
25typedef int (*cperf_runner_t)(void *test_ctx);
26typedef void (*cperf_destructor_t)(void *test_ctx);
27
28struct cperf_test {
29 cperf_constructor_t constructor;
30 cperf_runner_t runner;
31 cperf_destructor_t destructor;
32};
33
34#endif /* _CPERF_ */