Jason Gunthorpe b7066b32a1 RDMA/core: Create the device hw_counters through the normal groups mechanism
Instead of calling device_add_groups() add the group to the existing
groups array which is managed through device_add().

This requires setting up the hw_counters before device_add(), so it gets
split up from the already split port sysfs flow.

Move all the memory freeing to the release function.

Link: https://lore.kernel.org/r/666250d937b64f6fdf45da9e2dc0b6e5e4f7abd8.1623427137.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-06-16 20:58:30 -03:00
..
2020-08-18 15:43:07 -03:00
2021-03-26 09:31:21 -03:00
2020-05-02 20:19:54 -03:00
2019-06-28 21:18:23 -03:00
2021-03-26 14:07:36 -03:00
2020-08-06 16:43:36 -07:00
2021-03-26 09:31:21 -03:00