RDMA/cma: Use the right net namespace for the rdma_cm_id
authorParav Pandit <parav@mellanox.com>
Mon, 8 Jan 2018 15:04:43 +0000 (17:04 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 11 Jan 2018 05:00:33 +0000 (22:00 -0700)
commit608bc44634f3a1ce624d9e8586d05a6887bb3b3c
treefc34ece30dea9dcd0d0208a1c201353714397428
parent8cf12d7780b72ee421d18e1f8a15daf43fa6d1e6
RDMA/cma: Use the right net namespace for the rdma_cm_id

The net namespace is set in addr during create_rdma_id(),
cma_resolve_iboe_route() should use that instead of the
init namespace.

The original code was added in commit fa20105e09e9 ("IB/cma: Add support
for network namespaces"), but this path wasn't in use back then.

This patch updates the code to use right namespace, as preparation
for improving namespace support.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c