Re: [PATCH net-next v2 3/4] net: dsa: motorcomm: Dynamically allocate port structures

From: Andrew Lunn

Date: Tue Jun 30 2026 - 18:14:29 EST


On Tue, Jun 30, 2026 at 02:31:34AM +0800, David Yang wrote:
> With support for LED introduced later, struct yt921x_priv will be 17k
> which is not very good for a single kmalloc(). Convert the ports array
> to a array of pointers to stop bloating the priv struct.
>
> Signed-off-by: David Yang <mmyangfl@xxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew