From 939df28e3bcf197efd1ab14ca8dc328281e021fb Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 28 Nov 2017 12:55:53 -0700 Subject: [PATCH] examples/ioat/perf: remove DPDK dependency Use the env.h abstractions instead. Change-Id: I273ee0182b9da51f762cdd6af56056d08dcca9a7 Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/389401 Tested-by: SPDK Automated Test System Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- examples/ioat/perf/Makefile | 2 -- examples/ioat/perf/perf.c | 7 ++----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/examples/ioat/perf/Makefile b/examples/ioat/perf/Makefile index 667c6881b..51463a8e0 100644 --- a/examples/ioat/perf/Makefile +++ b/examples/ioat/perf/Makefile @@ -39,8 +39,6 @@ APP = perf C_SRCS := perf.c -CFLAGS += -I. $(ENV_CFLAGS) - SPDK_LIB_LIST = ioat util log LIBS += $(SPDK_LIB_LINKER_ARGS) $(ENV_LINKER_ARGS) diff --git a/examples/ioat/perf/perf.c b/examples/ioat/perf/perf.c index 3225f1626..4f5a0ae3b 100644 --- a/examples/ioat/perf/perf.c +++ b/examples/ioat/perf/perf.c @@ -33,9 +33,6 @@ #include "spdk/stdinc.h" -#include -#include - #include "spdk/ioat.h" #include "spdk/env.h" #include "spdk/queue.h" @@ -550,7 +547,7 @@ main(int argc, char **argv) worker = g_workers; while (worker != NULL) { if (worker->core != master_core) { - rte_eal_remote_launch(work_fn, worker, worker->core); + spdk_env_thread_launch_pinned(worker->core, work_fn, worker); } else { assert(master_worker == NULL); master_worker = worker; @@ -564,7 +561,7 @@ main(int argc, char **argv) goto cleanup; } - rte_eal_mp_wait_lcore(); + spdk_env_thread_wait_all(); rc = dump_result();