]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Work on the caller socket net namespace in nldev_newlink()
authorParav Pandit <parav@mellanox.com>
Thu, 4 Jul 2019 13:04:01 +0000 (16:04 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 8 Jul 2019 20:03:35 +0000 (17:03 -0300)
commit1e403c27e14c5b841531e6a92b7663c054f04f99
treefa0d1c4ebaf235761fbde83eb057272cf4f8a3cb
parent23a32ec2304f04598ce91138d1ee954e62a4f034
IB/core: Work on the caller socket net namespace in nldev_newlink()

While creating new RDMA devices based on netdevice name, consider the net
namespace of the caller skb's socket similar to rest of the doit()
callbacks and nldev_dellink() which deletes the RDMA device created using
nldev_newlink().

Fixes: e0f16f8658483 ("RDMA/core: Add RDMA_NLDEV_CMD_NEWLINK/DELLINK support")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/nldev.c