From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F0D612E7F2A; Thu, 21 Aug 2025 17:44:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755798289; cv=none; b=UvoKSXoqK87taiV37LEu1XMk1VJ4iGbvREb6L4x7E5SFsqLqMBC6fX3ygy2c8jiqfFsKEGdCzOv7RyxlrFqanDx4jLr7YvsI3wkM8D9+lR4x/yUNP6SAC55Y04twzNUtlz+0kQhP8fRjiOr439ZLlAnbQtT8kYggFqz7QuARYG8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755798289; c=relaxed/simple; bh=hwpE2IqqDqaV8DfOpZZZ1DfE3U+1TupPWH8OoWYR4iM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=B2Lr9LZe9fEAwFVWwFW1FfHwA1+8motZPhduG5mYCpxiTSY1LdRbJd6I0u9+6xzuhDzE/ZD7Jlm5mwsYzWMxDjT7BSSP18xPa7XrTZf/Ujhsvyz11umKsNap/d/KKuR7Xx1fzRXBdCTJDsQsmT31IkAA+N9JnNFp80yGIz41Bis= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.98.2) (envelope-from ) id 1up9L4-000000008V8-15kK; Thu, 21 Aug 2025 17:44:38 +0000 Date: Thu, 21 Aug 2025 18:43:53 +0100 From: Daniel Golle To: Andrew Lunn Cc: "Sverdlin, Alexander" , "hauke@hauke-m.de" , "olteanv@gmail.com" , "davem@davemloft.net" , "linux@armlinux.org.uk" , "linux-kernel@vger.kernel.org" , "arkadis@mellanox.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "edumazet@google.com" , "f.fainelli@gmail.com" , "horms@kernel.org" , "netdev@vger.kernel.org" , "john@phrozen.org" , "Stockmann, Lukas" , "yweng@maxlinear.com" , "fchan@maxlinear.com" , "lxu@maxlinear.com" , "jpovazanec@maxlinear.com" , "Schirm, Andreas" , "Christen, Peter" , "ajayaraman@maxlinear.com" , "bxu@maxlinear.com" , "lrosu@maxlinear.com" Subject: Re: [PATCH RFC net-next 12/23] net: dsa: lantiq_gswip: support 4k VLANs on API 2.2 or later Message-ID: References: <88bdaad0bb744dc401e94d97aba002431ac0b03b.camel@siemens.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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).