test:move env initialization steps after the parameters parsing
Move the nvme/reset tool's environment initialization steps after the parameter parsing. Change-Id: Id7a4302fa85b88b279895453293c701b982914a7 Signed-off-by: Liang Yan <liang.z.yan@intel.com> Reviewed-on: https://review.gerrithub.io/379261 Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
9663f84395
commit
4ac30f9f3c
@ -619,16 +619,17 @@ int main(int argc, char **argv)
|
||||
int i;
|
||||
struct spdk_env_opts opts;
|
||||
|
||||
spdk_env_opts_init(&opts);
|
||||
opts.name = "reset";
|
||||
opts.core_mask = "0x1";
|
||||
spdk_env_init(&opts);
|
||||
|
||||
rc = parse_args(argc, argv);
|
||||
if (rc != 0) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
spdk_env_opts_init(&opts);
|
||||
opts.name = "reset";
|
||||
opts.core_mask = "0x1";
|
||||
spdk_env_init(&opts);
|
||||
|
||||
task_pool = rte_mempool_create("task_pool", 8192,
|
||||
sizeof(struct reset_task),
|
||||
64, 0, NULL, NULL, task_ctor, NULL,
|
||||
|
Loading…
x
Reference in New Issue
Block a user