net: nlmon: Remove init and uninit functions
authorBreno Leitao <leitao@debian.org>
Fri, 1 Mar 2024 13:42:13 +0000 (05:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2024 10:18:02 +0000 (10:18 +0000)
commit4f41ce81a919cdaa6ae545f1c76264e719a7be0f
tree8ba47fe03aed2d4561536686f710b434a03b94ef
parentb8b85d048936bd304c7815fd2bce348a22c2055b
net: nlmon: Remove init and uninit functions

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 nlmon driver and leverage the network
core allocation.

Signed-off-by: Breno Leitao <leitao@debian.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/nlmon.c