diff options
author | Benoît Ganne <bganne@cisco.com> | 2019-10-04 17:38:05 +0200 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-10-09 11:11:46 +0000 |
commit | 4787d18b19f505cf85f1e3120527b491c4014895 (patch) | |
tree | 86327b2c7df1691cd01a12bbf403c42a212bba22 /src/plugins | |
parent | 9f1cea03c85aa86f5523f25b2ad89d69d6e7d62d (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>
(cherry picked from commit 4a98388daec998a56cb150e2acb8a26ae51c0c28)
Diffstat (limited to 'src/plugins')
-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 |