RDMA/core: Allow port_groups to be used with namespaces
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 11 Jun 2021 16:00:33 +0000 (19:00 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 16 Jun 2021 23:58:31 +0000 (20:58 -0300)
commit69d86a66bdf0d5aa7e687751203e5e6a94124fb5
tree048c429c5cd59c8bce135bfb209ba53ad15d655a
parentd7407d16699884817f3a93218e77b0801942362b
RDMA/core: Allow port_groups to be used with namespaces

Now that the port_groups data is being destroyed and managed by the core
code this restriction is no longer needed. All the ib_port_attrs are
compatible with the core's sysfs lifecycle.

When the main device is destroyed and moved to another namespace the
driver's port sysfs can be created/destroyed as well due to it now being a
simple attribute list.

Link: https://lore.kernel.org/r/afd8b676eace2821692d44489ff71856277c48d1.1623427137.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/device.c