1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Intel Corporation
5 #ifndef _COMP_PERF_OPS_
6 #define _COMP_PERF_OPS_
8 #define MAX_DRIVER_NAME 64
9 #define MAX_INPUT_FILE_NAME 64
11 #define MIN_COMPRESSED_BUF_SIZE 8
12 #define EXPANSE_RATIO 1.05
13 #define MAX_MBUF_DATA_SIZE (UINT16_MAX - RTE_PKTMBUF_HEADROOM)
14 #define MAX_SEG_SIZE ((int)(MAX_MBUF_DATA_SIZE / EXPANSE_RATIO))
16 extern const char *cperf_test_type_strs[];
18 /* Cleanup state machine */
28 enum cperf_perf_test_type {
29 CPERF_TEST_TYPE_BENCHMARK,
30 CPERF_TEST_TYPE_VERIFY
44 uint8_t list[MAX_LIST];
47 struct comp_test_data {
50 enum cperf_perf_test_type test;
60 uint16_t max_sgl_segs;
62 enum rte_comp_huffman huffman_enc;
63 enum comp_operation test_op;
65 struct range_list level_lst;
69 enum cleanup_st cleanup;
73 comp_perf_options_parse(struct comp_test_data *test_data, int argc,
77 comp_perf_options_default(struct comp_test_data *test_data);
80 comp_perf_options_check(struct comp_test_data *test_data);