Re: [PATCH net-next v2 2/6] net: dsa: motorcomm: Split MIB buffers

From: Andrew Lunn

Date: Mon Sep 07 2026 - 16:01:36 EST


On Sat, Sep 05, 2026 at 12:29:44AM +0800, David Yang wrote:
> With MIB improvement introduced later, struct yt921x_priv will be over
> 20k which is not very good for a single kmalloc(). Dynamically allocate
> the MIB structures to reduce the size of struct yt921x_priv, and do not
> waste memory on dummy ports.
>
> Signed-off-by: David Yang <mmyangfl@xxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew