]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/core: Add interface to read device namespace sharing mode
authorParav Pandit <parav@mellanox.com>
Tue, 26 Feb 2019 12:01:48 +0000 (14:01 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 28 Mar 2019 17:52:02 +0000 (14:52 -0300)
commitcb7e0e130503cb8e5ee6a7e8983bf71ed408516f
tree27ffc014ac210f970a46e830d07b43778acef8fd
parent37eeab55aeca98cb6648b471f09c0e651ccb1e7c
RDMA/core: Add interface to read device namespace sharing mode

Add an interface via netlink command to query whether rdma devices are
shared among multiple net namespaces or not. When using RDMAtool, it can
be queried as,

$rdma system show netns
netns shared

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/core_priv.h
drivers/infiniband/core/device.c
drivers/infiniband/core/nldev.c
include/uapi/rdma/rdma_netlink.h