RDMA/core: Expose the ib port sysfs attribute machinery
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 11 Jun 2021 16:00:28 +0000 (19:00 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 16 Jun 2021 23:58:30 +0000 (20:58 -0300)
commit054239f45c6346025afe252fe6f470a4093f61f9
tree8008f978e18f3ee883b9037a20edf422e78f5c18
parentd89eb509aaa36a08f983eac58b9fccd61ff3d375
RDMA/core: Expose the ib port sysfs attribute machinery

Other things outside the core code are creating attributes against the
port. This patch exposes the basic machinery to do this.

The ib_port_attribute type allows creating groups of attributes attatched
to the port and comes with the usual machinery to do this.

Link: https://lore.kernel.org/r/5c4aeae57f6fa7c59a1d6d1c5506069516ae9bbf.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
include/rdma/ib_sysfs.h [new file with mode: 0644]