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 void **sess); 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_ */ 35