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
ethdev: add IPv4/IPv6 ECN header rewrite action
[dpdk.git]
/
app
/
test-compress-perf
/
main.c
diff --git
a/app/test-compress-perf/main.c
b/app/test-compress-perf/main.c
index
ed21605
..
ce9e80b
100644
(file)
--- a/
app/test-compress-perf/main.c
+++ b/
app/test-compress-perf/main.c
@@
-67,7
+67,7
@@
comp_perf_check_capabilities(struct comp_test_data *test_data, uint8_t cdev_id)
uint64_t comp_flags = cap->comp_feature_flags;
uint64_t comp_flags = cap->comp_feature_flags;
- /* Huffman enco
n
ding */
+ /* Huffman encoding */
if (test_data->huffman_enc == RTE_COMP_HUFFMAN_FIXED &&
(comp_flags & RTE_COMP_FF_HUFFMAN_FIXED) == 0) {
RTE_LOG(ERR, USER1,
if (test_data->huffman_enc == RTE_COMP_HUFFMAN_FIXED &&
(comp_flags & RTE_COMP_FF_HUFFMAN_FIXED) == 0) {
RTE_LOG(ERR, USER1,
@@
-168,7
+168,7
@@
comp_perf_initialize_compressdev(struct comp_test_data *test_data,
cdev_id = enabled_cdevs[i];
struct rte_compressdev_info cdev_info;
cdev_id = enabled_cdevs[i];
struct rte_compressdev_info cdev_info;
-
uint8_
t socket_id = rte_compressdev_socket_id(cdev_id);
+
in
t socket_id = rte_compressdev_socket_id(cdev_id);
rte_compressdev_info_get(cdev_id, &cdev_info);
if (cdev_info.max_nb_queue_pairs &&
rte_compressdev_info_get(cdev_id, &cdev_info);
if (cdev_info.max_nb_queue_pairs &&
@@
-194,6
+194,7
@@
comp_perf_initialize_compressdev(struct comp_test_data *test_data,
.max_nb_priv_xforms = NUM_MAX_XFORMS,
.max_nb_streams = 0
};
.max_nb_priv_xforms = NUM_MAX_XFORMS,
.max_nb_streams = 0
};
+ test_data->nb_qps = config.nb_queue_pairs;
if (rte_compressdev_configure(cdev_id, &config) < 0) {
RTE_LOG(ERR, USER1, "Device configuration failed\n");
if (rte_compressdev_configure(cdev_id, &config) < 0) {
RTE_LOG(ERR, USER1, "Device configuration failed\n");
@@
-389,7
+390,7
@@
main(int argc, char **argv)
i = 0;
uint8_t qp_id = 0, cdev_index = 0;
i = 0;
uint8_t qp_id = 0, cdev_index = 0;
- RTE_LCORE_FOREACH_
SLAVE
(lcore_id) {
+ RTE_LCORE_FOREACH_
WORKER
(lcore_id) {
if (i == total_nb_qps)
break;
if (i == total_nb_qps)
break;
@@
-413,7
+414,7
@@
main(int argc, char **argv)
while (test_data->level <= test_data->level_lst.max) {
i = 0;
while (test_data->level <= test_data->level_lst.max) {
i = 0;
- RTE_LCORE_FOREACH_
SLAVE
(lcore_id) {
+ RTE_LCORE_FOREACH_
WORKER
(lcore_id) {
if (i == total_nb_qps)
break;
if (i == total_nb_qps)
break;
@@
-424,7
+425,7
@@
main(int argc, char **argv)
i++;
}
i = 0;
i++;
}
i = 0;
- RTE_LCORE_FOREACH_
SLAVE
(lcore_id) {
+ RTE_LCORE_FOREACH_
WORKER
(lcore_id) {
if (i == total_nb_qps)
break;
if (i == total_nb_qps)
break;
@@
-449,7
+450,7
@@
end:
case ST_DURING_TEST:
i = 0;
case ST_DURING_TEST:
i = 0;
- RTE_LCORE_FOREACH_
SLAVE
(lcore_id) {
+ RTE_LCORE_FOREACH_
WORKER
(lcore_id) {
if (i == total_nb_qps)
break;
if (i == total_nb_qps)
break;