git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/octeontx2: support GRE TSO offload
[dpdk.git]
/
app
/
test-compress-perf
/
comp_perf_options.h
diff --git
a/app/test-compress-perf/comp_perf_options.h
b/app/test-compress-perf/comp_perf_options.h
index
0aa29a5
..
2c26511
100644
(file)
--- a/
app/test-compress-perf/comp_perf_options.h
+++ b/
app/test-compress-perf/comp_perf_options.h
@@
-5,15
+5,13
@@
#ifndef _COMP_PERF_OPS_
#define _COMP_PERF_OPS_
#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 MAX_LIST 32
#define MIN_COMPRESSED_BUF_SIZE 8
-#define EXPANSE_RATIO 1.
05
+#define EXPANSE_RATIO 1.
1
#define MAX_MBUF_DATA_SIZE (UINT16_MAX - RTE_PKTMBUF_HEADROOM)
#define MAX_SEG_SIZE ((int)(MAX_MBUF_DATA_SIZE / EXPANSE_RATIO))
#define MAX_MBUF_DATA_SIZE (UINT16_MAX - RTE_PKTMBUF_HEADROOM)
#define MAX_SEG_SIZE ((int)(MAX_MBUF_DATA_SIZE / EXPANSE_RATIO))
-extern const char *cperf_test_type_strs[];
+extern const char *c
omp_
perf_test_type_strs[];
/* Cleanup state machine */
enum cleanup_st {
/* Cleanup state machine */
enum cleanup_st {
@@
-25,7
+23,7
@@
enum cleanup_st {
ST_DURING_TEST
};
ST_DURING_TEST
};
-enum cperf_
perf_
test_type {
+enum cperf_test_type {
CPERF_TEST_TYPE_BENCHMARK,
CPERF_TEST_TYPE_VERIFY
};
CPERF_TEST_TYPE_BENCHMARK,
CPERF_TEST_TYPE_VERIFY
};
@@
-45,9
+43,9
@@
struct range_list {
};
struct comp_test_data {
};
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;
uint8_t *input_data;
size_t input_data_sz;
@@
-58,15
+56,18
@@
struct comp_test_data {
uint32_t pool_sz;
uint32_t num_iter;
uint16_t max_sgl_segs;
uint32_t pool_sz;
uint32_t num_iter;
uint16_t max_sgl_segs;
+ uint32_t total_segs;
enum rte_comp_huffman huffman_enc;
enum comp_operation test_op;
int window_sz;
struct range_list level_lst;
uint8_t level;
enum rte_comp_huffman huffman_enc;
enum comp_operation test_op;
int window_sz;
struct range_list level_lst;
uint8_t level;
+ int use_external_mbufs;
double ratio;
enum cleanup_st cleanup;
double ratio;
enum cleanup_st cleanup;
+ int perf_comp_force_stop;
};
int
};
int