2017-12-19 15:48:59 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright(c) 2016-2017 Intel Corporation
|
2017-01-25 16:27:33 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _CPERF_OPS_
|
|
|
|
#define _CPERF_OPS_
|
|
|
|
|
|
|
|
#include <rte_crypto.h>
|
|
|
|
|
|
|
|
#include "cperf.h"
|
|
|
|
#include "cperf_options.h"
|
|
|
|
#include "cperf_test_vectors.h"
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct rte_cryptodev_sym_session *(*cperf_sessions_create_t)(
|
2017-07-05 05:26:17 +00:00
|
|
|
struct rte_mempool *sess_mp,
|
2017-01-25 16:27:33 +00:00
|
|
|
uint8_t dev_id, const struct cperf_options *options,
|
2017-07-02 05:41:14 +00:00
|
|
|
const struct cperf_test_vector *test_vector,
|
|
|
|
uint16_t iv_offset);
|
2017-01-25 16:27:33 +00:00
|
|
|
|
|
|
|
typedef int (*cperf_populate_ops_t)(struct rte_crypto_op **ops,
|
2017-10-04 03:46:13 +00:00
|
|
|
uint32_t src_buf_offset, uint32_t dst_buf_offset,
|
2017-01-25 16:27:33 +00:00
|
|
|
uint16_t nb_ops, struct rte_cryptodev_sym_session *sess,
|
|
|
|
const struct cperf_options *options,
|
2017-07-02 05:41:10 +00:00
|
|
|
const struct cperf_test_vector *test_vector,
|
2017-12-13 13:14:08 +00:00
|
|
|
uint16_t iv_offset, uint32_t *imix_idx);
|
2017-01-25 16:27:33 +00:00
|
|
|
|
|
|
|
struct cperf_op_fns {
|
|
|
|
cperf_sessions_create_t sess_create;
|
|
|
|
cperf_populate_ops_t populate_ops;
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
|
|
|
cperf_get_op_functions(const struct cperf_options *options,
|
|
|
|
struct cperf_op_fns *op_fns);
|
|
|
|
|
|
|
|
#endif /* _CPERF_OPS_ */
|