From 4787d18b19f505cf85f1e3120527b491c4014895 Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Fri, 4 Oct 2019 17:38:05 +0200 Subject: rdma: make sure pci subsystem is initialized MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The rdma driver use the pci subsystem, make sure the dependency is recorded. Type: fix Change-Id: Ibd613f623d355612881acc31b9423f2de13793a3 Signed-off-by: Benoît Ganne (cherry picked from commit 4a98388daec998a56cb150e2acb8a26ae51c0c28) --- src/plugins/rdma/device.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/rdma/device.c b/src/plugins/rdma/device.c index cb88849a7e2..d68bfaa1cf7 100644 --- a/src/plugins/rdma/device.c +++ b/src/plugins/rdma/device.c @@ -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 -- cgit 1.2.3-korg