1/* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright(c) 2017 Intel Corporation 3 */ 4 5#ifndef _CPERF_TEST_COMMON_H_ 6#define _CPERF_TEST_COMMON_H_ 7 8#include <stdint.h> 9 10#include <rte_mempool.h> 11 12#include "cperf_options.h" 13#include "cperf_test_vectors.h" 14 15int 16cperf_alloc_common_memory(const struct cperf_options *options, 17 const struct cperf_test_vector *test_vector, 18 uint8_t dev_id, uint16_t qp_id, 19 size_t extra_op_priv_size, 20 uint32_t *src_buf_offset, 21 uint32_t *dst_buf_offset, 22 struct rte_mempool **pool); 23 24void 25cperf_mbuf_set(struct rte_mbuf *mbuf, 26 const struct cperf_options *options, 27 const struct cperf_test_vector *test_vector); 28 29#endif /* _CPERF_TEST_COMMON_H_ */ 30