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
examples/service_cores: fix lcore count check
[dpdk.git]
/
examples
/
service_cores
/
main.c
diff --git
a/examples/service_cores/main.c
b/examples/service_cores/main.c
index
83915b9
..
9f52082
100644
(file)
--- a/
examples/service_cores/main.c
+++ b/
examples/service_cores/main.c
@@
-118,7
+118,7
@@
apply_profile(int profile_id)
struct profile *p = &profiles[profile_id];
const uint8_t core_off = 1;
struct profile *p = &profiles[profile_id];
const uint8_t core_off = 1;
- if (p->num_cores > rte_lcore_count()
+
1) {
+ if (p->num_cores > rte_lcore_count()
-
1) {
printf("insufficent cores to run (%s)",
p->name);
return;
printf("insufficent cores to run (%s)",
p->name);
return;