Commit 939df28e authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Jim Harris
Browse files

examples/ioat/perf: remove DPDK dependency



Use the env.h abstractions instead.

Change-Id: I273ee0182b9da51f762cdd6af56056d08dcca9a7
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/389401


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 44770c2a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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)
+2 −5
Original line number Diff line number Diff line
@@ -33,9 +33,6 @@

#include "spdk/stdinc.h"

#include <rte_config.h>
#include <rte_launch.h>

#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();