IB/hfi1: Do not use custom stat allocator
authorBreno Leitao <leitao@debian.org>
Fri, 3 May 2024 11:13:31 +0000 (04:13 -0700)
committerLeon Romanovsky <leon@kernel.org>
Sun, 5 May 2024 14:10:38 +0000 (17:10 +0300)
commit5194947e6a3966d50095c14c69edbec90ad191f9
tree188568461e071cd2a6bac988850fc930ff07d785
parent8f3b7103b41314d26e2653e9ccca29480123a204
IB/hfi1: Do not use custom stat allocator

With commit 34d21de99cea9 ("net: Move {l,t,d}stats allocation to core and
convert veth & vrf"), stats allocation could be done on net core
instead of in this driver.

With this new approach, the driver doesn't have to bother with error
handling (allocation failure checking, making sure free happens in the
right spot, etc). This is core responsibility now.

Remove the allocation in the hfi1 driver and leverage the network
core allocation instead.

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://lore.kernel.org/r/20240503111333.552360-1-leitao@debian.org
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hfi1/ipoib_main.c