]>
Commit | Line | Data |
---|---|---|
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 | ||
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, | |
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 | ||
25 | typedef int (*cperf_runner_t)(void *test_ctx); | |
26 | typedef void (*cperf_destructor_t)(void *test_ctx); | |
27 | ||
28 | struct cperf_test { | |
29 | cperf_constructor_t constructor; | |
30 | cperf_runner_t runner; | |
31 | cperf_destructor_t destructor; | |
32 | }; | |
33 | ||
34 | #endif /* _CPERF_ */ |