module/envet_net: add a map file and remove spdk prefix.

Signed-off-by: Seth Howell <seth.howell@intel.com>
Change-Id: Id1d7226ee3abbcd558d1ec38ababbb3cb1fd5e09
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2351
Community-CI: Mellanox Build Bot
Community-CI: Broadcom CI
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Seth Howell 2020-05-10 12:24:37 -07:00 committed by Tomasz Zawadzki
parent 5c0b8f39a8
commit ab56b08875
2 changed files with 14 additions and 12 deletions

View File

@ -41,4 +41,6 @@ SO_SUFFIX := $(SO_VER).$(SO_MINOR)
C_SRCS = net.c C_SRCS = net.c
LIBNAME = event_net LIBNAME = event_net
SPDK_MAP_FILE = $(SPDK_ROOT_DIR)/mk/spdk_blank.map
include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk

View File

@ -38,7 +38,7 @@
#include "spdk_internal/event.h" #include "spdk_internal/event.h"
static void static void
spdk_interface_subsystem_init(void) interface_subsystem_init(void)
{ {
int rc; int rc;
@ -48,7 +48,7 @@ spdk_interface_subsystem_init(void)
} }
static void static void
spdk_interface_subsystem_destroy(void) interface_subsystem_destroy(void)
{ {
spdk_interface_destroy(); spdk_interface_destroy();
spdk_subsystem_fini_next(); spdk_subsystem_fini_next();
@ -56,41 +56,41 @@ spdk_interface_subsystem_destroy(void)
static struct spdk_subsystem g_spdk_subsystem_interface = { static struct spdk_subsystem g_spdk_subsystem_interface = {
.name = "interface", .name = "interface",
.init = spdk_interface_subsystem_init, .init = interface_subsystem_init,
.fini = spdk_interface_subsystem_destroy, .fini = interface_subsystem_destroy,
.config = NULL, .config = NULL,
}; };
SPDK_SUBSYSTEM_REGISTER(g_spdk_subsystem_interface); SPDK_SUBSYSTEM_REGISTER(g_spdk_subsystem_interface);
static void static void
spdk_net_start_complete(void *cb_arg, int rc) net_start_complete(void *cb_arg, int rc)
{ {
spdk_subsystem_init_next(rc); spdk_subsystem_init_next(rc);
} }
static void static void
spdk_net_subsystem_start(void) net_subsystem_start(void)
{ {
spdk_net_framework_start(spdk_net_start_complete, NULL); spdk_net_framework_start(net_start_complete, NULL);
} }
static void static void
spdk_net_fini_done(void *cb_arg) net_fini_done(void *cb_arg)
{ {
spdk_subsystem_fini_next(); spdk_subsystem_fini_next();
} }
static void static void
spdk_net_subsystem_fini(void) net_subsystem_fini(void)
{ {
spdk_net_framework_fini(spdk_net_fini_done, NULL); spdk_net_framework_fini(net_fini_done, NULL);
} }
static struct spdk_subsystem g_spdk_subsystem_net_framework = { static struct spdk_subsystem g_spdk_subsystem_net_framework = {
.name = "net_framework", .name = "net_framework",
.init = spdk_net_subsystem_start, .init = net_subsystem_start,
.fini = spdk_net_subsystem_fini, .fini = net_subsystem_fini,
.config = NULL, .config = NULL,
}; };