Thread (5 messages) 5 messages, 3 authors, 2024-02-29

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

From: Nikolay Aleksandrov <razor@blackwall.org>
Date: 2024-02-27 19:02:04
Also in: bridge, lkml

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@debian.org>
---
  net/bridge/br_device.c | 13 ++-----------
  1 file changed, 2 insertions(+), 11 deletions(-)
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help