diff options
author | Benoît Ganne <bganne@cisco.com> | 2019-10-04 17:38:05 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-10-05 11:45:27 +0000 |
commit | 4a98388daec998a56cb150e2acb8a26ae51c0c28 (patch) | |
tree | be2a2fd05e8acf6c51d815706a2fe15750d6d933 /src/plugins/rdma/device.c | |
parent | 0eae2bb1f1199f7dcb6a8c62b1ea612ed9ee4ae1 (diff) |
rdma: make sure pci subsystem is initialized
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>
Diffstat (limited to 'src/plugins/rdma/device.c')
-rw-r--r-- | src/plugins/rdma/device.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 |