net: ipv6_gre: Do not use custom stat allocator
authorBreno Leitao <leitao@debian.org>
Fri, 12 Apr 2024 15:19:25 +0000 (08:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Apr 2024 10:32:13 +0000 (11:32 +0100)
commit8622f90a371b65a8e454ca3d1fe95aeed1bf1da4
tree34ae2d2999a6e2a15b7ab2bb66e8b0552d746498
parenta788fafff56f940dbb1753c5bbbff387f9b97619
net: ipv6_gre: 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_gre 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_gre.c