Function select_optimal_rdma_device

Source
pub fn select_optimal_rdma_device(
    device_hint: Option<&str>,
) -> Option<RdmaDevice>
Expand description

Step 1: Parse device string into prefix and postfix Step 2: Get PCI address from compute device Step 3: Get PCI address for all RDMA NIC devices Step 4: Calculate PCI distances and return closest RDMA NIC device