Re: [PATCH RFC net-next 12/23] net: dsa: lantiq_gswip: support 4k VLANs on API 2.2 or later

From: Daniel Golle
Date: Thu Aug 21 2025 - 13:46:40 EST


On Thu, Aug 21, 2025 at 07:03:35PM +0200, Andrew Lunn wrote:
> > > @@ -269,7 +270,8 @@ struct gswip_priv {
> > >   struct dsa_switch *ds;
> > >   struct device *dev;
> > >   struct regmap *rcu_regmap;
> > > - struct gswip_vlan vlans[64];
> > > + struct gswip_vlan (*vlans)[];
> >
> > ... if this would be just "struct gswip_vlan *vlans;"?
>
> Could it be moved to the end of the structure and made into an
> flexible array?

I agree that it would be nice to get rid of the additional indirection,
I will implement it as flexible array when we arrive there (ie. after
both series of preparations have been merged).