]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/core: Implement compat device/sysfs tree in net namespace
authorParav Pandit <parav@mellanox.com>
Tue, 26 Feb 2019 11:56:13 +0000 (13:56 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 28 Mar 2019 17:52:02 +0000 (14:52 -0300)
commit4e0f7b9070726a34bbd87a74e407d4cced6d49ab
treee3c106a91fa5612c05d6b91210b96b37fac9cab5
parent62dfa7955e842e7ff6827edc034a0839b009c326
RDMA/core: Implement compat device/sysfs tree in net namespace

Implement compatibility layer sysfs entries of ib_core so that non
init_net net namespaces can also discover rdma devices.

Each non init_net net namespace has ib_core_device created in it.
Such ib_core_device sysfs tree resembles rdma devices found in
init_net namespace.

This allows discovering rdma devices in multiple non init_net net
namespaces via sysfs entries and helpful to rdma-core userspace.

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/device.c
include/rdma/ib_verbs.h