Commit 7b7f2aa6 authored by GangCao's avatar GangCao Committed by Daniel Verkamp
Browse files

app: move the core usage display after DPDK init



Change-Id: I29a46cbaef20e15173781680a62bc8087ca5672f
Signed-off-by: default avatarGangCao <gang.cao@intel.com>
Reviewed-on: https://review.gerrithub.io/372426


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 7e3b9f25
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -177,7 +177,6 @@ main(int argc, char **argv)
	opts.shutdown_cb = spdk_iscsi_shutdown;
	opts.usr1_handler = spdk_sigusr1;

	printf("Total cores available: %u\n", spdk_env_get_core_count());
	printf("Using net framework %s\n", spdk_net_framework_get_name());
	/* Blocks until the application is exiting */
	app_rc = spdk_app_start(&opts, spdk_startup, NULL, NULL);
+0 −1
Original line number Diff line number Diff line
@@ -308,7 +308,6 @@ spdk_nvmf_tgt_start(struct spdk_app_opts *opts)

	opts->shutdown_cb = spdk_nvmf_shutdown_cb;

	printf("Total cores available: %d\n", spdk_env_get_core_count());
	/* Blocks until the application is exiting */
	rc = spdk_app_start(opts, spdk_nvmf_startup, NULL, NULL);

+2 −0
Original line number Diff line number Diff line
@@ -327,6 +327,8 @@ spdk_app_start(struct spdk_app_opts *opts, spdk_event_fn start_fn,

	spdk_env_init(&env_opts);

	printf("Total cores available: %d\n", spdk_env_get_core_count());

	/*
	 * If mask not specified on command line or in configuration file,
	 *  reactor_mask will be 0x1 which will enable core 0 to run one