• S
    RDMA/cma: Do not modify sa_family when setting loopback address · 6a3e362d
    Sean Hefty 提交于
    cma_resolve_loopback is called after an rdma_cm_id has been
    bound to a specific sa_family and port.  Once the
    source sa_family for the id has been set, do not modify it.
    Only the actual IP address portion of the source address
    needs to be set.
    
    As part of this fix, we can simplify setting the source address
    by moving the loopback address assignment from cma_resolve_loopback
    to cma_bind_loopback.  cma_bind_loopback is only invoked when
    the source address is the loopback address.
    
    Finally, add loopback support for AF_IB as part of the change.
    Signed-off-by: NSean Hefty <sean.hefty@intel.com>
    Signed-off-by: NRoland Dreier <roland@purestorage.com>
    6a3e362d
cma.c 91.4 KB