]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/lib/event/subsystems/net/net.c
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / lib / event / subsystems / net / net.c
index 9355514f2c77eeee13537f26b554211f665ce3db..62d65dbdb1308b2992a60173db90971b90a7140a 100644 (file)
@@ -64,20 +64,27 @@ static struct spdk_subsystem g_spdk_subsystem_interface = {
 SPDK_SUBSYSTEM_REGISTER(g_spdk_subsystem_interface);
 
 static void
-spdk_net_subsystem_start(void)
+spdk_net_start_complete(void *cb_arg, int rc)
 {
-       int rc;
+       spdk_subsystem_init_next(rc);
+}
 
-       rc = spdk_net_framework_start();
+static void
+spdk_net_subsystem_start(void)
+{
+       spdk_net_framework_start(spdk_net_start_complete, NULL);
+}
 
-       spdk_subsystem_init_next(rc);
+static void
+spdk_net_fini_done(void *cb_arg)
+{
+       spdk_subsystem_fini_next();
 }
 
 static void
 spdk_net_subsystem_fini(void)
 {
-       spdk_net_framework_fini();
-       spdk_subsystem_fini_next();
+       spdk_net_framework_fini(spdk_net_fini_done, NULL);
 }
 
 static struct spdk_subsystem g_spdk_subsystem_net_framework = {