RDMA/core: Consider net ns of gid attribute for RoCE
authorParav Pandit <parav@mellanox.com>
Wed, 5 Sep 2018 09:54:26 +0000 (12:54 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 12 Sep 2018 22:32:17 +0000 (16:32 -0600)
commit0e9d2c19bff1d351005afb2f990a913e395ba6d4
treef7aa4e5568d19fc2b2ab2b2060a6500612cd121e
parentd6b1764a8c5ac0ad3a66c6d11d24c4fe067fe933
RDMA/core: Consider net ns of gid attribute for RoCE

When resolving destination address or route, when net namespace is
unavailable, refer to the net namespace of the netdevice of the SGID
attribute. This is typically the case for requests arriving from the
network for RoCE ports.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/addr.c
drivers/infiniband/core/cma.c
drivers/infiniband/core/core_priv.h
drivers/infiniband/core/verbs.c
include/rdma/ib_addr.h