New upstream version 18.02
[deb_dpdk.git] / app / test-crypto-perf / cperf.h
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
12 struct cperf_options;
13 struct cperf_test_vector;
14 struct cperf_op_fns;
15
16 typedef void  *(*cperf_constructor_t)(
17                 struct rte_mempool *sess_mp,
18                 uint8_t dev_id,
19                 uint16_t qp_id,
20                 const struct cperf_options *options,
21                 const struct cperf_test_vector *t_vec,
22                 const struct cperf_op_fns *op_fns);
23
24 typedef int (*cperf_runner_t)(void *test_ctx);
25 typedef void (*cperf_destructor_t)(void *test_ctx);
26
27 struct cperf_test {
28         cperf_constructor_t constructor;
29         cperf_runner_t runner;
30         cperf_destructor_t destructor;
31 };
32
33 #endif /* _CPERF_ */