[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250618123933.GP1699@horms.kernel.org>
Date: Wed, 18 Jun 2025 13:39:33 +0100
From: Simon Horman <horms@...nel.org>
To: Frank Wunderlich <frank-w@...lic-files.de>
Cc: linux@...web.de, nbd@....name, sean.wang@...iatek.com,
lorenzo@...nel.org, andrew+netdev@...n.ch, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
matthias.bgg@...il.com, angelogioacchino.delregno@...labora.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, daniel@...rotopia.org,
arinc.unal@...nc9.com
Subject: Re: Re: [net-next v4 2/3] net: ethernet: mtk_eth_soc: add consts for
irq index
On Wed, Jun 18, 2025 at 09:24:57AM +0000, Frank Wunderlich wrote:
> Hi,
>
> > Gesendet: Mittwoch, 18. Juni 2025 um 10:36
> > Von: "Simon Horman" <horms@...nel.org>
> > Betreff: Re: [net-next v4 2/3] net: ethernet: mtk_eth_soc: add consts for irq index
> >
> > On Mon, Jun 16, 2025 at 10:07:35AM +0200, Frank Wunderlich wrote:
> > > From: Frank Wunderlich <frank-w@...lic-files.de>
> > >
> > > Use consts instead of fixed integers for accessing IRQ array.
> > >
> > > Signed-off-by: Frank Wunderlich <frank-w@...lic-files.de>
> > > ---
> > > v4:
> > > - calculate max from last (rx) irq index and use it for array size too
> >
> > Reviewed-by: Simon Horman <horms@...nel.org>
>
> thanks for review and the RB
>
> i thinking about changing the const names to this:
>
> MTK_ETH_IRQ_SHARED => MTK_FE_IRQ_SHARED
> MTK_ETH_IRQ_TX => MTK_FE_IRQ_TX
> MTK_ETH_IRQ_RX => MTK_FE_IRQ_RX
> MTK_ETH_IRQ_MAX => MTK_FE_IRQ_NUM
>
> because of i currently working on RSS/LRO patches and here MTK_FE_IRQ_NUM is used as name
> with same meaning like my current MTK_ETH_IRQ_MAX (where max should be same as RX and NUM
> is one more because it is a count).
> Current IRQs also target the MTK frame-engine which is different to the PDMA RX engine
> used for RSS/LRO later, so MTK_ETH_IRQ_RX and MTK_ETH_IRQ_MAX are maybe misleading when RSS/LRO
> support will come in.
>
> can i change the consts like this and keep your RB?
Yes, no objections from my side.
Powered by blists - more mailing lists