ibv_get_devices() to ibv_get_device_list(), and update all
in-tree uses of this API.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
dnl Checks for libraries
if test "$disable_libcheck" != "yes"
then
-AC_CHECK_LIB(ibverbs, ibv_get_devices, [],
- AC_MSG_ERROR([ibv_get_devices() not found. libibcm requires libibverbs.]))
+AC_CHECK_LIB(ibverbs, ibv_get_device_list, [],
+ AC_MSG_ERROR([ibv_get_device_list() not found. libibcm requires libibverbs.]))
#AC_CHECK_LIB(rdmacm, rdma_create_id, [],
# AC_MSG_ERROR([rdma_create_id() not found. ucmpost requires librdmacm.]))
fi
static int init(void)
{
- struct dlist *dev_list;
+ struct ibv_device **dev_list;
int ret;
test.connects_left = connections;
test.disconnects_left = connections;
- dev_list = ibv_get_devices();
- dlist_start(dev_list);
- test.device = dlist_next(dev_list);
+ dev_list = ibv_get_device_list(NULL);
+ test.device = dev_list[0];
if (!test.device)
return -1;