RDMA/core: Replace the ib_port_data hw_stats pointers with a ib_port pointer
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 11 Jun 2021 16:00:21 +0000 (19:00 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 16 Jun 2021 23:58:29 +0000 (20:58 -0300)
commitd8a5883814b9f7c08d7ff291070687d925b4f859
tree8a50803c5a23b148b4a25cf7a3be7d67587a1c3e
parent4b5f4d3fb40898a9f2ccf58030e69ea11fbd6eed
RDMA/core: Replace the ib_port_data hw_stats pointers with a ib_port pointer

It is much saner to store a pointer to the kobject structure that contains
the cannonical stats pointer than to copy the stats pointers into a public
structure.

Future patches will require the sysfs pointer for other purposes.

Link: https://lore.kernel.org/r/f90551dfd296cde1cb507bbef27cca9891d19871.1623427137.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/core_priv.h
drivers/infiniband/core/nldev.c
drivers/infiniband/core/sysfs.c
include/rdma/ib_verbs.h