net/vsockmon: Leverage core stats allocator
authorBreno Leitao <leitao@debian.org>
Fri, 23 Feb 2024 11:58:37 +0000 (03:58 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Feb 2024 02:39:09 +0000 (18:39 -0800)
commitbcd53aff4d0cce9c4bedf345e6f896e35f2fd4c5
treeb9b7a825c7ff3e6da2934698db9180f79e730212
parent25d4342574644bca5cbe1ace865955e406b9a741
net/vsockmon: Leverage core stats 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 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 vsockmon driver and leverage the network
core allocation instead.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20240223115839.3572852-1-leitao@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/vsockmon.c