]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfrm: Do not allocate stats in the driver
authorBreno Leitao <leitao@debian.org>
Thu, 22 Feb 2024 14:41:17 +0000 (06:41 -0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 27 Feb 2024 10:33:20 +0000 (11:33 +0100)
commitaceb147b20a2eda9a10bdd4b5650718f731ef3e1
tree24c67d7de6a8fff3db58690712811a8229c86201
parent1476de6d2b578673e20fb4cf654ff61cf2782873
xfrm: 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 xfrm driver and leverage the network
core allocation.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_interface_core.c