ipv6/sit: Do not allocate stats in the driver
authorBreno Leitao <leitao@debian.org>
Wed, 21 Feb 2024 16:17:32 +0000 (08:17 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Feb 2024 02:57:53 +0000 (18:57 -0800)
commit3e7a0dccf0703edd3a2d9e3361f672241c31773b
tree1386e116c12a83854f31c93d903ce52b4785db06
parentbcc115760ff32a5a256129a6eb39840288d269bd
ipv6/sit: Do not allocate stats in the driver

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

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20240221161732.3026127-1-leitao@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/sit.c