From f7a072db7de919c512dc93a1f4df955350eaae02 Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Sun, 10 May 2020 11:54:11 -0700 Subject: [PATCH] module/env_dpdk_rpc: add a map file and remove spdk prefix. Signed-off-by: Seth Howell Change-Id: Ibd61bd61f309cee6f9663327a43e81f6d70c7921 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2345 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk Reviewed-by: Jim Harris Tested-by: SPDK CI Jenkins --- module/env_dpdk/Makefile | 2 ++ module/env_dpdk/env_dpdk_rpc.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/module/env_dpdk/Makefile b/module/env_dpdk/Makefile index 957265fd8d..fc708f38e6 100644 --- a/module/env_dpdk/Makefile +++ b/module/env_dpdk/Makefile @@ -41,4 +41,6 @@ SO_SUFFIX := $(SO_VER).$(SO_MINOR) C_SRCS = env_dpdk_rpc.c LIBNAME = env_dpdk_rpc +SPDK_MAP_FILE = $(SPDK_ROOT_DIR)/mk/spdk_blank.map + include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk diff --git a/module/env_dpdk/env_dpdk_rpc.c b/module/env_dpdk/env_dpdk_rpc.c index 16ae050a9e..e66f136095 100644 --- a/module/env_dpdk/env_dpdk_rpc.c +++ b/module/env_dpdk/env_dpdk_rpc.c @@ -37,8 +37,8 @@ #include "spdk_internal/log.h" static void -spdk_rpc_env_dpdk_get_mem_stats(struct spdk_jsonrpc_request *request, - const struct spdk_json_val *params) +rpc_env_dpdk_get_mem_stats(struct spdk_jsonrpc_request *request, + const struct spdk_json_val *params) { FILE *file = NULL; struct spdk_json_write_ctx *w; @@ -65,4 +65,4 @@ spdk_rpc_env_dpdk_get_mem_stats(struct spdk_jsonrpc_request *request, spdk_json_write_object_end(w); spdk_jsonrpc_end_result(request, w); } -SPDK_RPC_REGISTER("env_dpdk_get_mem_stats", spdk_rpc_env_dpdk_get_mem_stats, SPDK_RPC_RUNTIME) +SPDK_RPC_REGISTER("env_dpdk_get_mem_stats", rpc_env_dpdk_get_mem_stats, SPDK_RPC_RUNTIME)