1. 19 2月, 2017 39 次提交
  2. 15 2月, 2017 1 次提交
    • M
      IB/cma: Destination and source addr families must match · 6df6b4a9
      Moni Shoua 提交于
      The destination address in a listening rdma_id does not have an address
      family. Since address family in both sides of a connection must be the
      same in rdma_bind_addr() we set the address family of the destination to
      the address family of the source.
      
      This patch serves the logic in cma_port_is_unique() which requires to
      know if destination address that is associated with a rdma_id is any address
      (cma_zero_addr() and cma_loopback_addr()).
      
      This can happen when port reuse is checked for a port number
      that is being listened to.
      
      Fixes: 19b752a1 ("IB/cma: Allow port reuse for rdma_id")
      Signed-off-by: NMoni Shoua <monis@mellanox.com>
      Signed-off-by: NLeon Romanovsky <leon@kernel.org>
      Signed-off-by: NDoug Ledford <dledford@redhat.com>
      6df6b4a9