]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA: Change ops->init_port to ops->port_groups
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 11 Jun 2021 16:00:32 +0000 (19:00 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 16 Jun 2021 23:58:31 +0000 (20:58 -0300)
commit3e3dc4e6bfb85be8390fbad588c4507a9ee1d2ba
tree62354cafcb7d6ae509521eef88a4ab11393d07a4
parentc12ad25338b5b4b6c96a8eed2c8a65bce52d08df
RDMA: Change ops->init_port to ops->port_groups

init_port was only being used to register sysfs attributes against the
port kobject. Now that all users are creating static attribute_group's we
can simply set the attribute_group list in the ops and the core code can
just handle it directly.

This makes all the sysfs management quite straightforward and prevents any
driver from abusing the naked port kobject in future because no driver
code can access it.

Link: https://lore.kernel.org/r/114f68f3d921460eafe14cea5a80ca65d81729c3.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
drivers/infiniband/core/sysfs.c
drivers/infiniband/hw/hfi1/hfi.h
drivers/infiniband/hw/hfi1/sysfs.c
drivers/infiniband/hw/hfi1/verbs.c
drivers/infiniband/hw/qib/qib.h
drivers/infiniband/hw/qib/qib_sysfs.c
drivers/infiniband/hw/qib/qib_verbs.c
drivers/infiniband/sw/rdmavt/vt.c
include/rdma/ib_sysfs.h
include/rdma/ib_verbs.h