]> git.baikalelectronics.ru Git - kernel.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)
commit48a910c6b333bed7e6b2191763143471a57dd73a
tree27ffc014ac210f970a46e830d07b43778acef8fd
parentae40486694997f2445e78768a446e953ba9e0e04
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