net: bareudp: Do not allocate stats in the driver
authorBreno Leitao <leitao@debian.org>
Thu, 29 Feb 2024 17:04:23 +0000 (09:04 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2024 08:55:44 +0000 (08:55 +0000)
commit6f355bbb5ca3062fceb945f9ec08bc892046ae90
tree09a8a9b3e2569f7eae664b03b168b650abb65a90
parent4a759c12526e2fce3f09ce78fe065c6f93ddb0b6
net: bareudp: 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 bareudp 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: David S. Miller <davem@davemloft.net>
drivers/net/bareudp.c