linux/drivers/infiniband
Moni Shoua 6df6b4a9ce IB/cma: Destination and source addr families must match
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: 19b752a19d ("IB/cma: Allow port reuse for rdma_id")
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-02-15 09:51:33 -05:00
..
core IB/cma: Destination and source addr families must match 2017-02-15 09:51:33 -05:00
hw RDMA/bnxt_re: Add bnxt_re driver build support 2017-02-14 09:51:28 -05:00
sw IB/rxe: Fix an skb leak 2017-01-10 16:52:47 -05:00
ulp IB/IPoIB: Add destination address when re-queue packet 2017-02-15 09:51:28 -05:00
Kconfig RDMA/bnxt_re: Add bnxt_re driver build support 2017-02-14 09:51:28 -05:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00