]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit17fe3b5f56963986e68a6e8f293d4acf983abcbb
treef7aa4e5568d19fc2b2ab2b2060a6500612cd121e
parentb7895182d02ad5f07956686bfde532c944e9b6fe
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