Re: [PATCH] eth: dpaa2: constify dpaa2_ethtool_stats and dpaa2_ethtool_extras

From: Len Bao

Date: Sat May 30 2026 - 06:49:21 EST


Hi Ioana,

On Mon, May 25, 2026 at 05:40:46PM +0300, Ioana Ciornei wrote:
> On Sat, May 23, 2026 at 03:07:35PM +0000, Len Bao wrote:
> > The 'dpaa2_ethtool_stats' and 'dpaa2_ethtool_extras' structures are
> > initialized in their declarations and never changed. So, constify them
> > to reduce the attack surface.
> >
> > Before the patch (size dpaa2-ethtool.o):
> >
> > text data bss dec hex
> > 33433 5992 0 39425 9a01
> >
> > After the patch (size dpaa2-ethtool.o):
> >
> > text data bss dec hex
> > 34937 4488 0 39425 9a01
> >
> > Signed-off-by: Len Bao <len.bao@xxxxxx>
>
> Reviewed-by: Ioana Ciornei <ioana.ciornei@xxxxxxx>

Thanks for the review.

> Next time, please mention the target tree name in the subject prefix. In
> this case, it would have been net-next.

Ok, next time I will do what you suggest. Thank you for the guidance.

Regards,
Len