RDMA/cma: Introduce and use cma_acquire_dev_by_src_ip()
authorParav Pandit <parav@mellanox.com>
Sat, 15 Sep 2018 09:07:56 +0000 (12:07 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 1 Oct 2018 01:21:13 +0000 (19:21 -0600)
commitff11c6cd521f4fd859c825976e4146dfb166029c
treefa8fe2534f472f32a9f87ec942c093a9adbbd81f
parent78fb282b150c36269fcecf5d08e6de7117e9f4ab
RDMA/cma: Introduce and use cma_acquire_dev_by_src_ip()

Light weight version of cma_acquire_dev() just for binding with rdma
device based on source IP(v4/v6) address.

This simplifies cma_acquire_dev() to avoid listen_id specific checks and
also for subsequent simplification for IB vs iWarp.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c