net: bridge: Do not allocate stats in the driver
authorBreno Leitao <leitao@debian.org>
Tue, 27 Feb 2024 18:23:36 +0000 (10:23 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 29 Feb 2024 04:15:32 +0000 (20:15 -0800)
commitd35150c79ffcd730e3c9f20cf128288606e3bf3b
treef1e833d64750a1573eefc32f49077749d3a31802
parent8a7746982ed797e1f511dece56c6675f0f845d6f
net: bridge: 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 bridge driver and leverage the network
core allocation.

Signed-off-by: Breno Leitao <leitao@debian.org>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://lore.kernel.org/r/20240227182338.2739884-1-leitao@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_device.c