• Mark Bloch's avatar
    IB/core: Add IP to GID netlink offload · ae43f828
    Mark Bloch authored
    There is an assumption that rdmacm is used only between nodes
    in the same IB subnet, this why ARP resolution can be used to turn
    IP to GID in rdmacm.
    
    When dealing with IB communication between subnets this assumption
    is no longer valid. ARP resolution will get us the next hop device
    address and not the peer node's device address.
    
    To solve this issue, we will check user space if it can provide the
    GID of the peer node, and fail if not.
    
    We add a sequence number to identify each request and fill in the GID
    upon answer from userspace.
    Signed-off-by: default avatarMark Bloch <markb@mellanox.com>
    Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
    ae43f828
core_priv.h 4.9 KB