[PATCH v2 net-next 07/13] net: enetc: add RSS support for i.MX95 ENETC PF
Wei Fang
wei.fang at nxp.com
Wed Jan 15 20:03:54 PST 2025
> -----Original Message-----
> From: Jakub Kicinski <kuba at kernel.org>
> Sent: 2025年1月16日 10:41
> To: Wei Fang <wei.fang at nxp.com>
> Cc: Claudiu Manoil <claudiu.manoil at nxp.com>; Vladimir Oltean
> <vladimir.oltean at nxp.com>; Clark Wang <xiaoning.wang at nxp.com>;
> andrew+netdev at lunn.ch; davem at davemloft.net; edumazet at google.com;
> pabeni at redhat.com; christophe.leroy at csgroup.eu; netdev at vger.kernel.org;
> linux-kernel at vger.kernel.org; linuxppc-dev at lists.ozlabs.org;
> linux-arm-kernel at lists.infradead.org; imx at lists.linux.dev
> Subject: Re: [PATCH v2 net-next 07/13] net: enetc: add RSS support for i.MX95
> ENETC PF
>
> On Thu, 16 Jan 2025 02:24:10 +0000 Wei Fang wrote:
> > > Why create full ops for something this trivial?
> >
> > We add enetc_pf_hw_ops to implement different hardware ops
> > for different chips. So that they can be called in common functions.
> > Although the change is minor, it is consistent with the original
> > intention of adding enetc_pf_hw_ops.
>
> In other words you prefer ops.
>
> Now imagine you have to refactor such piece of code in 10 drivers
> and each of them has 2 layers of indirect ops like you do.
> Unnecessary complexity.
Okay, I will remove them from ops.
More information about the linux-arm-kernel
mailing list