examples/accel_perf: add case for bogus workload selection
Could have sworn this was in there but when we check for workload selections we weren't printing usage and exiting when there was an unknown selection. Signed-off-by: paul luse <paul.e.luse@intel.com> Change-Id: Iadc02457d9a15602bb4138c611a982333a8a2b66 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12932 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by: John Kariuki <John.K.Kariuki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
9260fa0cd4
commit
b21221e174
@ -211,6 +211,9 @@ parse_args(int argc, char *argv)
|
||||
g_workload_selection = ACCEL_OPC_DUALCAST;
|
||||
} else if (!strcmp(g_workload_type, "compress")) {
|
||||
g_workload_selection = ACCEL_OPC_COMPRESS;
|
||||
} else {
|
||||
usage();
|
||||
return 1;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user