rdma: make sure pci subsystem is initialized 45/22545/2
authorBenoît Ganne <bganne@cisco.com>
Fri, 4 Oct 2019 15:38:05 +0000 (17:38 +0200)
committerDamjan Marion <dmarion@me.com>
Sat, 5 Oct 2019 11:45:27 +0000 (11:45 +0000)
The rdma driver use the pci subsystem, make sure the dependency is
recorded.

Type: fix

Change-Id: Ibd613f623d355612881acc31b9423f2de13793a3
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/plugins/rdma/device.c

index cb88849..d68bfaa 100644 (file)
@@ -778,7 +778,12 @@ rdma_init (vlib_main_t * vm)
   return 0;
 }
 
-VLIB_INIT_FUNCTION (rdma_init);
+/* *INDENT-OFF* */
+VLIB_INIT_FUNCTION (rdma_init) =
+{
+  .runs_after = VLIB_INITS ("pci_bus_init"),
+};
+/* *INDENT-OFF* */
 
 /*
  * fd.io coding-style-patch-verification: ON