RDMA/core: Split gid_attrs related sysfs from add_port()
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 11 Jun 2021 16:00:23 +0000 (19:00 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 16 Jun 2021 23:58:29 +0000 (20:58 -0300)
commita32f433522c97d2f07c060517f1f0f4058aa211b
tree57ea3e21a37c77a89dc79bc691a08d6f2de57106
parent467f432a521a284c418e3d521ee51840a5e23424
RDMA/core: Split gid_attrs related sysfs from add_port()

The gid_attrs directory is a dedicated kobj nested under the port,
construct/destruct it with its own pair of functions for
understandability. This is much more readable than having it weirdly
inlined out of order into the add_port() function.

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