🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10091

Re: [PATCH net-next] net: ena: Fold header containing PCI id definitions into driver

#10091
From: Uwe Kleine-König
Date: Tue, 03 Nov 2026 06:41
70 lines
14050 bytes
--fmbssy6xzbjtangh
Content-Type: text/plain; protected-headers=v1; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Subject: Re: [PATCH net-next] net: ena: Fold header containing PCI id
 definitions into driver
MIME-Version: 1.0

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=F6nig <u.kleine-koenig@b=
aylibre.com> wrote:
> > The file ena_pci_id_tbl.h is only included once. Fold it into its only
> > consumer, simplifying a bit en passant.
> >=20
> > 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.
> >=20
> > Signed-off-by: Uwe Kleine-K=F6nig <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:
>=20
>  - 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, ...)
>=20
> Would you mind respinning along those lines?

Will respin later today or tomorrow.

Best regards
Uwe

--fmbssy6xzbjtangh
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmrpgicACgkQj4D7WH0S
/k4h4wf7BnWnpyFdy5t4kYuzGwH0D4hl5r6jwwVpNlRESO2NGcbD42sXBuT1L79v
GSMzWDB7jllHfMen947CoYaPAb5N5svMpDw9TjY1MO8hiTnzwzBCvIjaSvI6+nfS
SOTcbPkPoBLrdHlwk45oaFZ1CqCYYmud16tIkvA2G/Rrp+S9wQ6I1h0wZkWZ5ncC
37KbLYNcuhRRYQli/XCeIrQ6nKTF7f59q01bJdrMQWXrcHrNmMzYLxkxKFg3FREu
jBYBvuX44fxKZHDGcH09Uy134k3yQ+I+JoXGh2v8ylG42xzQ27jGjq/UEXz0iISz
uuuhFvyoIGTp5OBOsDhGMkb5UntSGQ==
=I/JX
-----END PGP SIGNATURE-----

--fmbssy6xzbjtangh--
Technical Details
Message-ID: <aumBQIUAj0qhlB0e@monoceros>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355248-linux-kernel-netdev=dewy.ru
References: <20261102110907.356621-2-u.kleine-koenig@baylibre.com> <179365616498.28818.15452478866037209509.b4-review@b4>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355248-linux-kernel-netdev=dewy.ru
From: u.kleine-koenig@baylibre.com (Uwe Kleine-König)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next] net: ena: Fold header containing PCI id
 definitions into driver
Date: Tue, 3 Nov 2026 07:41:46 +0100
Organization: Usenet Network
Message-ID: <aumBQIUAj0qhlB0e@monoceros>
References: <20261102110907.356621-2-u.kleine-koenig@baylibre.com>
 <179365616498.28818.15452478866037209509.b4-review@b4>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="fmbssy6xzbjtangh"
Injection-Info: usenet.network;
	logging-data="3109605"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:K7mHPWUgKyPYueqDxSHmLLO8cKU= sha256:hF6IecVjbS4KH5yII15mEk1XOv4cVC75RdNOmV0gzFQ=
	sha1:dRWywJQNb/oA3STpolNWbP0DVnM= sha256:yWq4dWWuQwq0rXfKdDeU5mR49foT98GigXYkucRmMtg=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 4E9BE112751; Tue,  3 Nov 2026 09:43:15 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=baylibre.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 2ViUDckuKc5T;
	Tue,  3 Nov 2026 09:43:12 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-355248-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=baylibre.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 9F48E1126DB; Tue,  3 Nov 2026 09:43:02 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 1B58F2B1EB; Tue,  3 Nov 2026 06:41:53 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793688112;
	b=Ms8fQcFhutFbUs7TsEvHCw7sGkGCfumCLwU8DMy39lO0/cUe1VHf8xXF8gk7odyy9I9e
	 IykMNrGR/hNfTOC6XboHWkbv5B5wjvrlLbep51fxw1TAQ7MwwR1ZhoXXLXwY0uw8V5WR2
	 UrAOnLhNarJRn6GOfU6WAxzO1artqlTP8Z+ktWrlkFg46eh5oaFZvFWAvhI3j6l28rRLK
	 UvsnihcirJOcAv1K7ooh5yntBdHUwenSQC0ooVBY4nISHaR5Ybv+KU6H5idaKfXs2tWh0
	 fsfzSdKYSZUmDcL9tyD1ar9DXG7MkHpuXpikXq7HTMs6D9HEKDsETiPKppu59m10j4w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793688112;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
	 X-Gm-Gg:X-Received:Received:Date:From:To:Cc:Subject:Message-ID:
	 References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
	 Content-Disposition:In-Reply-To;
	bh=XZbFiyKP41aFFQ9gy0xVXRe5kyE6xQOvIotkPQSuTqo=;
	b=obznf0LiG6wzxbVkR52L3xyP3obf2uxFooAgh9XMVqsBovesg13K51Xsohv+sQ3eb6NF
	 cJh2nwF2jdGvm1d1FQWTS+Yvr2U8qBpqgSVYZst7zFuoqv6qLURrSyY+1AbJA+M5BHZ8H
	 kxreFtirvvOCKE9YOvu+9O1s/PYGfst6R3aeZ3yEnrTb4KI82zP0vEFijHBR+SoEOx91n
	 nwpgGsdniqngDleA7V7ET7ck8JYVLXPkHin2+EPp6AIY8n3WvdBmiqiWO6r8m6h16WHlD
	 n609154lqYZ0hqXQSKU9NOxYY4n2KdLREzVEr5eOD9lFj3EbxlxWALAc4OZ2vzw1YJg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=oluP6zyi;
	dmarc=none header.from=baylibre.com;
	spf=pass smtp.mailfrom=baylibre.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id C94EE606A332;
	Tue,  3 Nov 2026 06:41:52 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=oluP6zyi
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.43
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793688111;
	b=ncXsKL4o5Fx6Tzufn9FzgqgMzxdAETO5U4/R/xvU4VBT0VySxAtFaOdUgA5SIdgY16m3
	 ue7CW2fAXmYWJxkxnzgd2rbwoREPVuoenFpWkU2BowIcvlVltBK1LoAySOJaoX/cbA7mu
	 qlj1sVoPOZTUtUX/6dzzKPlneRms8O2P7rxQgcC7Nf/+roxGuODWN6ACRy/oyzHkoCFv+
	 oFSPUR7p5B3OAGn2ivT58yjHVDMALPnzmMQgpBwS7KmO6somow/nOan+MbC0mBFmY6KZI
	 7zZBJqSfChBLA06WY3aNiMG2uMFwPoD8PMwaIZerRUvvy04hxTujkNdWIvCWmvU5aww==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793688111;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
	 Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To;
	bh=XZbFiyKP41aFFQ9gy0xVXRe5kyE6xQOvIotkPQSuTqo=;
	b=AIwKVIsGUv2nI58QuUsinHTjHxbmx0YL3F60AZNS4yNz60eEnqfIPSSH9LHwBP75+w6d
	 kRALOkqE82WwecbyCXB4MY9+FlgnMfQ7r0FoBccDMzUosZ0jCEiI9XLn6wjXu/VaSQxSw
	 pCFNhGMOfAbkd7nt0U/acnjTWcKIjyF1yZmcSyZs0BVkvk0gVEEjFrTllJMD6TFO72tUL
	 pT6xRhPRXYEjbfw2YVZc1OKFuJB4I5Myesr8dveYnNeKcX1A1smNDCH+8O/QwbYeJ/nAO
	 B0Q7KdV3X4F0rJ9BJWWly4hI7MZc8rHkttnLMQxPuZL8UeWJSFvDKUyNznNdqjE4N0g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=baylibre.com;
	spf=pass smtp.mailfrom=baylibre.com;
	dkim=pass header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=oluP6zyi;
	arc=none smtp.remote-ip=209.85.128.43
X-Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 650A8606A329
	for <netdev@vger.kernel.org>; Tue,  3 Nov 2026 06:41:50 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 650A8606A329
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com
X-Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4a20bde60a0so28743045e9.3
        for <netdev@vger.kernel.org>; Mon, 02 Nov 2026 22:41:50 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=baylibre.com; s=google; t=1793688109; x=1794292909; darn=vger.kernel.org;
        h=in-reply-to:content-disposition:content-type:mime-version
         :references:message-id:subject:cc:to:from:date:from:to:cc:subject
         :date:message-id:reply-to:content-type;
        bh=XZbFiyKP41aFFQ9gy0xVXRe5kyE6xQOvIotkPQSuTqo=;
        b=oluP6zyiXVY9kgI2Vf/ouNfKZtMzfELewZ1/UdCsAmA4IaIYYA9oFhy33tOcWN5jCh
         Mm1Ky/FhuxFAqUTNq5FU51Or/apgIuRHipx6NIzTFHTWsS6qmen0tffq21jUhZ183rux
         aFYASSvrM8X5eHcXGYTIJmskC95WgDrc90fOtVgTug/hfJLkmYp/q0A/Z5cdlpo5MtZP
         fq/CHGGYumh0QHxJx45J0TaZ01isaULs7dCdTn9fBjAxEvoWV/LwV6UYwdYqR0RLdRfc
         +kVKTESs1ocbnIVwJFH+oZMS1gd3U0PkyY92RFt8dyOzQFvlJ3bA2DPdPLVp/HCzT7km
         jB2Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1793688109; x=1794292909;
        h=in-reply-to:content-disposition:content-type:mime-version
         :references:message-id:subject:cc:to:from:date:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=XZbFiyKP41aFFQ9gy0xVXRe5kyE6xQOvIotkPQSuTqo=;
        b=Iop1FRAR3xheTdDImikCCDy+JQL7z6P3mo8ljQNuv/4rGgfYNZAR6d0RZ331hEALaV
         GAFQzd9QhESezKtAlXAXpyHe6XttMCpI4DJWKUMYo0fiHc5ge2sBxfLfS5S5nQYZMtvM
         u2tydPBNQBzEGme0AIlCOfbFUFnf9J2rD4BXOsPQTKXvIDj8W7CUnUKU2wFeJWyWGdhP
         bCKLPDxAOcBqUUlXfKg38aBh16QdFITbdxtkUCYV4q5NMX3M7hCYu7eq5RwGOR/yEr0P
         gPTbBmVpIx90TWnKdpNg89Obm1QF3vDA4uhSGHoIIGn+o56eNKcT9wbHboTgRQ1NJ89E
         oDjg==
X-Forwarded-Encrypted: i=1; AKwUvBw9NwSakzt8JIgHH7sUO28bI3oVimU5EoUtp/hHkkHJaVJafPPGr1MKFyqcRURRJ6URvkkzdX0=@vger.kernel.org
X-Gm-Message-State: APuU4Z/mdpzh5CqJUVypk14jP4w8pnPEPIGnsAh6TLOKw9wW4nTWMKti
	ml6VyGd31D0mGOAXL3tD1bQvPKoa1nqFFhfTQCO6GUrvDPfNeuX4BoOFNIB+ZMuIFoY=
X-Gm-Gg: AYBFou1VMJyes777HCTn3d3Y9dSqfFVXJOSB/onZIx0Bb5hCssZbiTKhz1Cu22zsrlH
	2dkZSH7BmW3bDGEuqX4S7AEbKvWU0g3Yy0x/KHKQztvZMOVEj1x0R+EpytXOZ+f+JHf+cGq6Yhh
	Rk5NNnsZNOOstMgO/c1mryls3h2PHmR8qx5PG+ytApliK/JEV/UBTkGxzVE4Z3lPOan1HOU/DZz
	NjrCgP8VWXW9wBvU5+u7M59odR2zXO8Vy5uAYR77v2/VVUv89aE7Iz7mcnuzV1osvzypSYLMtdm
	u5laDmso9DnNsaPzXYPs/MiBfqa/t7djuCl3zVdKjw4+Kxjcxic/iXDVK7g9x/kFRnDkYxy8WVR
	kLPXwNbztq9+yF83DVy5SLpgYp+2U7eCnR9FTZYM9+K/QYT2dIrD49KYUl2jIFOTL+1OO8z0nvb
	EKN8MahTUBld4u4gjmWJgSLLpFpYPoc1siKfdmK2urneeQezlMk/B7usQN+UIkUAbWU9E83eX7D
	iWlOjP/cv+2+ZG9XpZFmzNmPCKSTm+vZNXuY03/v6xjMUt+nF0WICVHGeJtegCMpN3+jQRM0qzM
	EkgOX6VERH5ObCuEVIQCWslrx/TKS+H9ww==
X-Received: by 2002:a05:600c:6211:b0:4a1:80d8:aed5 with SMTP id 5b1f17b1804b1-4ac17191046mr289485365e9.6.1793688108839;
        Mon, 02 Nov 2026 22:41:48 -0800 (PST)
X-Received: from localhost ([2a02:8071:56d1:2de0:1d24:d58d:2b65:c291])
        by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-4b2aae24b32sm33736825e9.12.2026.11.02.22.41.47
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Mon, 02 Nov 2026 22:41:48 -0800 (PST)
X-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
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <179365616498.28818.15452478866037209509.b4-review@b4>