+44
−7
Loading
Instead of rushing and probing all drivers for all NICs, first try to check which RDMA drivers are already loaded. Try only to use these NICs which drivers are already available. This makes it easier to select which NIC vendor will be used in test, as not all NICs will be listed under /sys/class/infiniband (even if physically present in system). If for some reason a preloaded driver is detected, but no physical NIC is seen in lspci - fall back to "old way" and try to all NICs known to us. Also includes code change to following if block, just for style consistency in function. Change-Id: Idc5756b5d4927b0ff11b5a37ed3729995f5c8f8a Signed-off-by:Karol Latecki <karol.latecki@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5948 Community-CI: Broadcom CI Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>