Re: [PATCH net-next 1/2] net: bridge: Do not allocate stats in the driver

From: Nikolay Aleksandrov
Date: Tue Feb 27 2024 - 14:03:45 EST


On 2/27/24 20:23, Breno Leitao wrote:
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@xxxxxxxxxx>
---
net/bridge/br_device.c | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)


Acked-by: Nikolay Aleksandrov <razor@xxxxxxxxxxxxx>