1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Intel Corporation
5 #define MAX_DRIVER_NAME 64
6 #define MAX_INPUT_FILE_NAME 64
20 uint8_t list[MAX_LIST];
23 struct comp_test_data {
26 struct rte_mbuf **comp_bufs;
27 struct rte_mbuf **decomp_bufs;
31 uint8_t *compressed_data;
32 uint8_t *decompressed_data;
33 struct rte_mempool *comp_buf_pool;
34 struct rte_mempool *decomp_buf_pool;
35 struct rte_mempool *op_pool;
41 uint16_t max_sgl_segs;
42 enum rte_comp_huffman huffman_enc;
43 enum comp_operation test_op;
45 struct range_list level;
46 /* Store TSC duration for all levels (including level 0) */
47 uint64_t comp_tsc_duration[RTE_COMP_LEVEL_MAX + 1];
48 uint64_t decomp_tsc_duration[RTE_COMP_LEVEL_MAX + 1];
52 comp_perf_options_parse(struct comp_test_data *test_data, int argc,
56 comp_perf_options_default(struct comp_test_data *test_data);
59 comp_perf_options_check(struct comp_test_data *test_data);