]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/core: Extend ib_device_get_by_index for net namespace
authorParav Pandit <parav@mellanox.com>
Tue, 26 Feb 2019 12:01:47 +0000 (14:01 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 28 Mar 2019 17:52:02 +0000 (14:52 -0300)
commit65405b76f93abe7d55e1fce2b605b187f7f53ffe
treece3ca5f6305215d2f291acde9a8946c5918ef431
parentab09014c1a3e545317309f4b3ae1a8bdb26a45c3
RDMA/core: Extend ib_device_get_by_index for net namespace

Extend ib_device_get_by_index() API to check device access for
net namespace for serving netlink commands.

Also enforce net ns check on dumpit commands which iterate over all
registered rdma devices and which don't call ib_device_get_by_index().

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