#ifndef _COMP_PERF_OPS_
#define _COMP_PERF_OPS_
-#define MAX_DRIVER_NAME 64
-#define MAX_INPUT_FILE_NAME 64
#define MAX_LIST 32
#define MIN_COMPRESSED_BUF_SIZE 8
#define EXPANSE_RATIO 1.05
ST_DURING_TEST
};
-enum cperf_perf_test_type {
+enum cperf_test_type {
CPERF_TEST_TYPE_BENCHMARK,
CPERF_TEST_TYPE_VERIFY
};
};
struct comp_test_data {
- char driver_name[64];
- char input_file[64];
- enum cperf_perf_test_type test;
+ char driver_name[RTE_DEV_NAME_MAX_LEN];
+ char input_file[PATH_MAX];
+ enum cperf_test_type test;
uint8_t *input_data;
size_t input_data_sz;
return -1;
}
- test_data->test = (enum cperf_perf_test_type)id;
+ test_data->test = (enum cperf_test_type)id;
return 0;
}
test_data->huffman_enc = RTE_COMP_HUFFMAN_DYNAMIC;
test_data->test_op = COMPRESS_DECOMPRESS;
test_data->window_sz = -1;
- test_data->level_lst.min = 1;
- test_data->level_lst.max = 9;
+ test_data->level_lst.min = RTE_COMP_LEVEL_MIN;
+ test_data->level_lst.max = RTE_COMP_LEVEL_MAX;
test_data->level_lst.inc = 1;
test_data->test = CPERF_TEST_TYPE_BENCHMARK;
}
#include <rte_log.h>
#include <rte_compressdev.h>
+#include "comp_perf.h"
#include "comp_perf_options.h"
-#include "comp_perf_test_verify.h"
#include "comp_perf_test_benchmark.h"
-#include "comp_perf.h"
#include "comp_perf_test_common.h"
+#include "comp_perf_test_verify.h"
+
#define DIV_CEIL(a, b) ((a) / (b) + ((a) % (b) != 0))
* power of 2 but also should be enough to store incompressible data
*/
- /* We're looking for nearest power of 2 buffer size, which is greather
+ /* We're looking for nearest power of 2 buffer size, which is greater
* than input_size
*/
uint32_t size =