From: Simon Horman <horms@kernel.org>
To: Frank Wunderlich <frank-w@public-files.de>
Cc: linux@fw-web.de, nbd@nbd.name, sean.wang@mediatek.com,
lorenzo@kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net,
edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, daniel@makrotopia.org,
arinc.unal@arinc9.com
Subject: Re: Re: [net-next v4 2/3] net: ethernet: mtk_eth_soc: add consts for irq index
Date: Wed, 18 Jun 2025 13:39:33 +0100 [thread overview]
Message-ID: <20250618123933.GP1699@horms.kernel.org> (raw)
In-Reply-To: <trinity-86a5b58b-a74a-48be-80ae-aa306e95f214-1750238697100@trinity-msg-rest-gmx-gmx-live-b647dc579-2m42j>
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@kernel.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@public-files.de>
> > >
> > > Use consts instead of fixed integers for accessing IRQ array.
> > >
> > > Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
> > > ---
> > > v4:
> > > - calculate max from last (rx) irq index and use it for array size too
> >
> > Reviewed-by: Simon Horman <horms@kernel.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.
next prev parent reply other threads:[~2025-06-18 15:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-16 8:07 [net-next v4 0/3] rework IRQ handling in mtk_eth_soc Frank Wunderlich
2025-06-16 8:07 ` Frank Wunderlich
2025-06-16 8:07 ` [net-next v4 1/3] net: ethernet: mtk_eth_soc: support named IRQs Frank Wunderlich
2025-06-16 8:07 ` Frank Wunderlich
2025-06-19 7:44 ` Frank Wunderlich
2025-06-19 12:38 ` Simon Horman
2025-06-16 8:07 ` [net-next v4 2/3] net: ethernet: mtk_eth_soc: add consts for irq index Frank Wunderlich
2025-06-16 8:07 ` Frank Wunderlich
2025-06-18 8:36 ` Simon Horman
2025-06-18 8:36 ` Simon Horman
2025-06-18 9:24 ` Aw: " Frank Wunderlich
2025-06-18 12:39 ` Simon Horman [this message]
2025-06-16 8:07 ` [net-next v4 3/3] net: ethernet: mtk_eth_soc: change code to skip first IRQ completely Frank Wunderlich
2025-06-16 8:07 ` Frank Wunderlich
2025-06-18 8:35 ` Simon Horman
2025-06-18 8:35 ` Simon Horman
2025-06-18 9:14 ` Aw: " Frank Wunderlich
2025-06-18 12:38 ` Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250618123933.GP1699@horms.kernel.org \
--to=horms@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=angelogioacchino.delregno@collabora.com \
--cc=arinc.unal@arinc9.com \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=frank-w@public-files.de \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux@fw-web.de \
--cc=lorenzo@kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=nbd@nbd.name \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sean.wang@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.