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
kni: implement header_ops parse method
[dpdk.git]
/
app
/
test-compress-perf
/
comp_perf_test_benchmark.c
diff --git
a/app/test-compress-perf/comp_perf_test_benchmark.c
b/app/test-compress-perf/comp_perf_test_benchmark.c
index
9aa2665
..
5752906
100644
(file)
--- a/
app/test-compress-perf/comp_perf_test_benchmark.c
+++ b/
app/test-compress-perf/comp_perf_test_benchmark.c
@@
-22,6
+22,7
@@
main_loop(struct comp_test_data *test_data, uint8_t level,
struct rte_mbuf **input_bufs, **output_bufs;
int res = 0;
int allocated = 0;
struct rte_mbuf **input_bufs, **output_bufs;
int res = 0;
int allocated = 0;
+ uint32_t out_seg_sz;
if (test_data == NULL || !test_data->burst_sz) {
RTE_LOG(ERR, USER1,
if (test_data == NULL || !test_data->burst_sz) {
RTE_LOG(ERR, USER1,
@@
-55,6
+56,7
@@
main_loop(struct comp_test_data *test_data, uint8_t level,
};
input_bufs = test_data->decomp_bufs;
output_bufs = test_data->comp_bufs;
};
input_bufs = test_data->decomp_bufs;
output_bufs = test_data->comp_bufs;
+ out_seg_sz = test_data->out_seg_sz;
} else {
xform = (struct rte_comp_xform) {
.type = RTE_COMP_DECOMPRESS,
} else {
xform = (struct rte_comp_xform) {
.type = RTE_COMP_DECOMPRESS,
@@
-67,6
+69,7
@@
main_loop(struct comp_test_data *test_data, uint8_t level,
};
input_bufs = test_data->comp_bufs;
output_bufs = test_data->decomp_bufs;
};
input_bufs = test_data->comp_bufs;
output_bufs = test_data->decomp_bufs;
+ out_seg_sz = test_data->seg_sz;
}
/* Create private xform */
}
/* Create private xform */
@@
-130,7
+133,7
@@
main_loop(struct comp_test_data *test_data, uint8_t level,
/* Reset all data in output buffers */
struct rte_mbuf *m = output_bufs[buf_id];
/* Reset all data in output buffers */
struct rte_mbuf *m = output_bufs[buf_id];
- m->pkt_len =
test_data->
seg_sz * m->nb_segs;
+ m->pkt_len =
out_
seg_sz * m->nb_segs;
while (m) {
m->data_len = m->buf_len - m->data_off;
m = m->next;
while (m) {
m->data_len = m->buf_len - m->data_off;
m = m->next;
@@
-187,7
+190,7
@@
main_loop(struct comp_test_data *test_data, uint8_t level,
while (remaining_data > 0) {
data_to_append =
RTE_MIN(remaining_data,
while (remaining_data > 0) {
data_to_append =
RTE_MIN(remaining_data,
-
test_data->
seg_sz);
+
out_
seg_sz);
m->data_len = data_to_append;
remaining_data -=
data_to_append;
m->data_len = data_to_append;
remaining_data -=
data_to_append;
@@
-236,7
+239,7
@@
main_loop(struct comp_test_data *test_data, uint8_t level,
while (remaining_data > 0) {
data_to_append =
RTE_MIN(remaining_data,
while (remaining_data > 0) {
data_to_append =
RTE_MIN(remaining_data,
-
test_data->
seg_sz);
+
out_
seg_sz);
m->data_len = data_to_append;
remaining_data -=
data_to_append;
m->data_len = data_to_append;
remaining_data -=
data_to_append;