examples/ioat/perf: remove DPDK dependency
Use the env.h abstractions instead. Change-Id: I273ee0182b9da51f762cdd6af56056d08dcca9a7 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/389401 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
44770c2a11
commit
939df28e3b
@ -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)
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user