Moni Shoua 19b752a19d IB/cma: Allow port reuse for rdma_id
When allocating a port number for binding to a rdma_id, assuming the
allocation is not for a specific port, the rule is to allow only ports
that were not in use before by any other rdma_id.

This condition is too strong to achieve the goal of a unique 5 tuple
rdma_id. Instead, we can compare current rdma_id with other rdma_id for
difference in one of destination port, source address and destination
address to allow port reuse.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-01-24 16:20:37 -05:00
..
2015-06-12 14:49:18 -04:00
2015-05-05 13:21:27 -04:00
2017-01-24 16:20:37 -05:00
2017-01-24 16:20:37 -05:00
2017-01-24 14:19:48 -05:00
2016-01-19 15:25:45 -05:00
2017-01-24 14:20:42 -05:00
2016-05-13 13:37:18 -04:00
2016-03-03 10:20:25 -05:00
2016-03-03 10:20:25 -05:00
2016-12-15 12:03:32 -08:00