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
test/hash: fix off-by-one check on core count
[dpdk.git]
/
app
/
test
/
test_hash_readwrite_lf.c
diff --git
a/app/test/test_hash_readwrite_lf.c
b/app/test/test_hash_readwrite_lf.c
index
343a338
..
f9f233a
100644
(file)
--- a/
app/test/test_hash_readwrite_lf.c
+++ b/
app/test/test_hash_readwrite_lf.c
@@
-939,7
+939,7
@@
test_hash_add_ks_lookup_hit_sp(struct rwc_perf *rwc_perf_results, int rwc_lf,
}
for (n = 0; n < NUM_TEST; n++) {
unsigned int tot_lcore = rte_lcore_count();
- if (tot_lcore < rwc_core_cnt[n])
+ if (tot_lcore < rwc_core_cnt[n]
+ 1
)
goto finish;
printf("\nNumber of readers: %u\n", rwc_core_cnt[n]);