From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: Arthur Kiyanovski <akiyano@amazon.com>
Cc: David Arinzon <darinzon@amazon.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
Simon Horman <horms@kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>,
Guangshuo Li <lgs201920130244@gmail.com>,
Ioana Ciornei <ioana.ciornei@nxp.com>,
Sang-Heon Jeon <ekffu200098@gmail.com>,
Dawei Feng <dawei.feng@seu.edu.cn>,
netdev@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next] net: ena: Fold header containing PCI id definitions into driver
Date: Tue, 3 Nov 2026 07:41:46 +0100 [thread overview]
Message-ID: <aumBQIUAj0qhlB0e@monoceros> (raw)
In-Reply-To: <179365616498.28818.15452478866037209509.b4-review@b4>
[-- Attachment #1: Type: text/plain, Size: 1654 bytes --]
Hello Arthur,
On Mon, Nov 02, 2026 at 09:49:24PM +0000, Arthur Kiyanovski wrote:
> On Mon, 02 Nov 2026 12:09:05 +0100, Uwe Kleine-König <u.kleine-koenig@baylibre.com> wrote:
> > The file ena_pci_id_tbl.h is only included once. Fold it into its only
> > consumer, simplifying a bit en passant.
> >
> > Note that I took out the trailing comma from the expanded value of
> > ENA_PCI_ID_TABLE_ENTRY() and thus these commas have to be added when the
> > macro is used improving readability.
> >
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
>
> I'd prefer to keep ena_pci_id_tbl.h as a separate file - ena_netdev.c is
> already by far the largest file in the driver, and I'd rather not grow it
> further when there's an alternative.
File size isn't a relevant metric for me, but I can live with it that
it's one for you.
> You're right about the missing definition though, and I think we can fix
> that by adding #include <linux/pci.h> to ena_pci_id_tbl.h instead. Would
> that satisfy your check script?
It would, the minimal header to achieve that is <linux/device-id/pci.h>.
I'd stick to that for v2.
> The rest of the cleanup can be applied to the header instead:
>
> - drop the #ifndef guards around the PCI_DEV_ID_ENA_* defines, nothing
> defines those names anymore
> - drop the PCI_VENDOR_ID_AMAZON fallback too, <linux/pci_ids.h> has had
> it since 4.18
> - keep the trailing comma change, that's how the other drivers do it
> (mlx4, e1000, cxgb4, qlcnic, ...)
>
> Would you mind respinning along those lines?
Will respin later today or tomorrow.
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2026-11-03 6:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 11:09 Uwe Kleine-König
2026-11-02 21:49 ` Arthur Kiyanovski
2026-11-03 6:41 ` Uwe Kleine-König [this message]
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=aumBQIUAj0qhlB0e@monoceros \
--to=u.kleine-koenig@baylibre.com \
--cc=akiyano@amazon.com \
--cc=andrew+netdev@lunn.ch \
--cc=corbet@lwn.net \
--cc=darinzon@amazon.com \
--cc=davem@davemloft.net \
--cc=dawei.feng@seu.edu.cn \
--cc=edumazet@kernel.org \
--cc=ekffu200098@gmail.com \
--cc=horms@kernel.org \
--cc=ioana.ciornei@nxp.com \
--cc=kuba@kernel.org \
--cc=lgs201920130244@gmail.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rdunlap@infradead.org \
--cc=skhan@linuxfoundation.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®