]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1acb569f4f41d384abfc842cf00771ba4e4b069
treefc34ece30dea9dcd0d0208a1c201353714397428
parent01b7357c3c9394a43268e2cf59a91bad33af78c9
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 c03ad9a95eb3 ("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