ip6_vti: Do not use custom stat allocator
authorBreno Leitao <leitao@debian.org>
Thu, 4 Apr 2024 12:52:51 +0000 (05:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2024 09:58:46 +0000 (10:58 +0100)
commita9b2d55a8f1e9652b800c84c3986442ca6d1fb50
tree021edcdf224ddcf4e33495806e392b3eb6e595ec
parent267e31750ae89f845cfe7df8f577b19482d9ef9b
ip6_vti: 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 ip6_vti and leverage the network
core allocation instead.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_vti.c