net: ip6_tunnel: Leverage core stats allocator
authorBreno Leitao <leitao@debian.org>
Wed, 28 Feb 2024 18:03:17 +0000 (10:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2024 09:57:18 +0000 (09:57 +0000)
commit6752fb18dc5763e9d6efe5aebf03e4fc69e6086b
treeaa3198ff02692ccde89b7b2d330c5452bd3dcbb4
parentd1c29cfd47168df8974a418f1a78ba7b6a0ea2bf
net: ip6_tunnel: 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 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 ip6_tunnel driver and leverage the network
core allocation instead.

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_tunnel.c