From 9139304ac2a64db4af06360fa91e5609763d853d Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Fri, 2 Jun 2017 10:52:37 -0700 Subject: [PATCH] iscsi_tgt: Remove use of rte_lcore Change-Id: I533a004e1c28247a19a893f970e273e3219ad702 Signed-off-by: Ben Walker Reviewed-on: https://review.gerrithub.io/363604 Tested-by: SPDK Automated Test System Reviewed-by: John Meneghini Reviewed-by: Daniel Verkamp --- app/iscsi_tgt/iscsi_tgt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/iscsi_tgt/iscsi_tgt.c b/app/iscsi_tgt/iscsi_tgt.c index e5203532a..40c3e115a 100644 --- a/app/iscsi_tgt/iscsi_tgt.c +++ b/app/iscsi_tgt/iscsi_tgt.c @@ -33,9 +33,6 @@ #include "spdk/stdinc.h" -#include -#include - #include "spdk/env.h" #include "spdk/event.h" #include "iscsi/iscsi.h" @@ -184,7 +181,7 @@ main(int argc, char **argv) opts.usr1_handler = spdk_sigusr1; spdk_app_init(&opts); - printf("Total cores available: %d\n", rte_lcore_count()); + 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(spdk_startup, NULL, NULL);