From: Leon Romanovsky <leonro@xxxxxxxxxxxx> >From Parav: When there are multiple rdma devices exist in a system, it is desired to have per net namespace based devices without any compatibility devices. Therefore, add a query and set option through which user can disable/enable default mode of sharing a rdma device in multiple net namespaces. In subsequent series, a new netlink command will be added to change the namespace of an rdma device. Thanks Parav Pandit (5): RDMA/core: Add module param to disable device sharing among net ns RDMA: Check net namespace access for uverbs, umad and cma RDMA/core: Extend ib_device_get_by_index for net namespace RDMA/core: Add interface to read device namespace sharing mode RDMA/core: Add command to set ib_core device net namspace sharing mode drivers/infiniband/core/cma.c | 3 + drivers/infiniband/core/core_priv.h | 6 +- drivers/infiniband/core/device.c | 110 +++++++++++++++++++++++++- drivers/infiniband/core/nldev.c | 71 +++++++++++++++-- drivers/infiniband/core/user_mad.c | 10 +++ drivers/infiniband/core/uverbs_main.c | 5 ++ include/rdma/ib_verbs.h | 3 + include/uapi/rdma/rdma_netlink.h | 9 ++- 8 files changed, 207 insertions(+), 10 deletions(-) -- 2.19.1