summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorRich Lane <rich.lane@bigswitch.com>2015-09-25 13:37:16 -0700
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-10-26 20:36:26 +0100
commit4fce65a6be1779c1bb0d0f0e6806cbadeca77108 (patch)
treef41c82011921f0f8d46ed9226ddf4228d3ddfdf1 /app
parent19bfa4ddb1a983b6810b7d054a6fbc8360f86d73 (diff)
downloaddpdk-4fce65a6be1779c1bb0d0f0e6806cbadeca77108.zip
dpdk-4fce65a6be1779c1bb0d0f0e6806cbadeca77108.tar.gz
dpdk-4fce65a6be1779c1bb0d0f0e6806cbadeca77108.tar.xz
eal: default to using all cores
This is a useful default for simple applications where the assignment of lcores to CPUs doesn't matter. It's also useful for more complex applications that automatically assign tasks to cores based on the NUMA topology. Signed-off-by: Rich Lane <rich.lane@bigswitch.com>
Diffstat (limited to 'app')
-rw-r--r--app/test/test_eal_flags.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/app/test/test_eal_flags.c b/app/test/test_eal_flags.c
index e6f7035..e0aee2d 100644
--- a/app/test/test_eal_flags.c
+++ b/app/test/test_eal_flags.c
@@ -571,11 +571,16 @@ test_missing_c_flag(void)
"-n", "3", "--lcores",
"0-1,2@(5-7),(3-5)@(0,2),(0,6),7"};
+ if (launch_proc(argv2) != 0) {
+ printf("Error - "
+ "process did not run ok when missing -c flag\n");
+ return -1;
+ }
+
if (launch_proc(argv1) == 0
- || launch_proc(argv2) == 0
|| launch_proc(argv3) == 0) {
printf("Error - "
- "process ran without error when missing -c flag\n");
+ "process ran without error with invalid -c flag\n");
return -1;
}
if (launch_proc(argv4) != 0) {