Loading
example/accel_perf: return when no workload is specified
If no workload is specified via arguments, then parse_args does not execute for -w that sets g_workload_selection. Resulting in taking the default of COPY enum (equals 0). This patch initializes g_workload_selection to value that will never be used for a valid operation (SPDK_ACCEL_OPC_LAST) and double checks it after parsing the arguments. Signed-off-by:Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I4b2a4a5d3665e3d3703fa688fed961d5f8e2d42d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20971 Community-CI: Mellanox Build Bot Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>