net/dummy: Move stats allocation to core
authorBreno Leitao <leitao@debian.org>
Mon, 19 Feb 2024 13:43:28 +0000 (05:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Feb 2024 11:20:56 +0000 (11:20 +0000)
commita381690dd84283d7a4f849649d692bdf3b8f424d
tree075f711553c937dd7d5fbbe2eb1990a958298167
parentebb0346a117f96fe732791289628964276d51b7d
net/dummy: Move stats allocation to core

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.

Move dummy driver to leverage the core allocation.

Suggested-by: Jakub Kicinski <kuba@kernel.org>
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/dummy.c