πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #21431

Re: [PATCH net-next v19 01/15] net: define IPPROTO_QUIC and SOL_QUIC constants

#21431
From: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 01:21
104 lines
12480 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.

Low priority / nit picks for your consideration:

- [Low] This patch edits the tools/ copies of the kernel headers
  directly: tools/include/uapi/linux/in.h (adds IPPROTO_QUIC = 261) and…
- [Low] The commit message does not mention the change to
  include/trace/events/sock.h.

--

net: define IPPROTO_QUIC and SOL_QUIC constants

This commit adds the IPPROTO_QUIC (261) and SOL_QUIC (288) constants for
the in-kernel QUIC socket implementation. It also adds IPPROTO_QUIC to
the inet_protocol_names trace enum mapping. The tools/ copies of in.h
and socket.h get the same definitions.

> diff --git a/include/trace/events/sock.h b/include/trace/events/sock.h
> index b5310439536e0..ed43fe6d2705b 100644
> --- a/include/trace/events/sock.h
> +++ b/include/trace/events/sock.h
> @@ -20,7 +20,8 @@
>  #define inet_protocol_names		\
>  		EM(IPPROTO_TCP)			\
>  		EM(IPPROTO_SCTP)		\
> -		EMe(IPPROTO_MPTCP)
> +		EM(IPPROTO_MPTCP)		\
> +		EMe(IPPROTO_QUIC)

[Severity: Low]
This isn't a bug, but could the commit message mention this change?

inet_protocol_names feeds the TRACE_DEFINE_ENUM exports and
show_inet_protocol_name(). That helper is used in the TP_printk output
of inet_sock_set_state, inet_sk_error_report and the sock_msg_length
class. With this change those events print "IPPROTO_QUIC" instead of a
raw 261, and a new enum is exported to trace parsers.

The commit body only describes the new UAPI constants. The tracepoint
change is noted only in the v15 changelog below the "---" line, and
that text is dropped when the patch is applied. A one-line note in the
body would cover it.

>  
>  #define tcp_state_names			\
>  		EM(TCP_ESTABLISHED)		\

[ ... ]

> diff --git a/tools/include/uapi/linux/in.h b/tools/include/uapi/linux/in.h
> index ced0fc3c3aa53..e4072152f2e62 100644
> --- a/tools/include/uapi/linux/in.h
> +++ b/tools/include/uapi/linux/in.h
> @@ -85,6 +85,8 @@ enum {
>  #define IPPROTO_RAW		IPPROTO_RAW
>    IPPROTO_SMC = 256,		/* Shared Memory Communications		*/
>  #define IPPROTO_SMC		IPPROTO_SMC
> +  IPPROTO_QUIC = 261,		/* A UDP-Based Multiplexed Secure Transport */
> +#define IPPROTO_QUIC		IPPROTO_QUIC
>    IPPROTO_MPTCP = 262,		/* Multipath TCP connection		*/
>  #define IPPROTO_MPTCP		IPPROTO_MPTCP
>    IPPROTO_MAX
> diff --git a/tools/perf/trace/beauty/include/linux/socket.h b/tools/perf/trace/beauty/include/linux/socket.h
> index b17fdb7d38a77..7677133953ecf 100644
> --- a/tools/perf/trace/beauty/include/linux/socket.h
> +++ b/tools/perf/trace/beauty/include/linux/socket.h
> @@ -401,6 +401,7 @@ struct ucred {
>  #define SOL_MCTP	285
>  #define SOL_SMC		286
>  #define SOL_VSOCK	287
> +#define SOL_QUIC	288

[Severity: Low]
Should these two tools/ hunks be part of this patch?

tools/include/uapi/README says:

  So its important not to touch the copies in tools/ when doing changes in
  the original kernel headers, that will be done later, when
  check-headers.sh inform about the change to the perf tools hackers.

tools/perf/check-headers.sh tracks both include/uapi/linux/in.h and
include/linux/socket.h. The perf maintainers normally sync these copies
in their own tree and check that the beauty scripts still parse the new
definitions. Editing the copies from the networking tree skips that
check and can lead to duplicate or conflicting syncs.

The commit body also doesn't mention the tools/ changes. They appear
only in the v15 changelog below the "---" line.

Would it make sense to drop the tools/include/uapi/linux/in.h and
tools/perf/trace/beauty/include/linux/socket.h hunks, or send them as a
separate patch to the perf-tools maintainers?

>  
>  /* IPX options */
>  #define IPX_TYPE	1

-- 
Sashiko AI review Β· https://netdev-ai.bots.linux.dev/sashiko/#/patchset/cover.1795393690.git.lucien.xin%40gmail.com
Technical Details
Message-ID: <179548326096.3135.1557496253047696896@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369914-linux-kernel-netdev=dewy.ru
References: <ba1d4f03926411d4e61a7587e41a12b0b423d841.1795393691.git.lucien.xin@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369914-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v19 01/15] net: define IPPROTO_QUIC and SOL_QUIC
 constants
Date: Tue, 24 Nov 2026 01:21:00 +0000
Organization: Usenet Network
Message-ID: <179548326096.3135.1557496253047696896@kernel.org>
References: <ba1d4f03926411d4e61a7587e41a12b0b423d841.1795393691.git.lucien.xin@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="4024775"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:fVeza99OFkaoEKzUfv1nLdpzSaw= sha256:9Q3/ghiU3/D3TK25f0sPt8HcJeM/HkxhJmMm91Qmhu8=
	sha1:8vpLMCXcQJ+clJgyhZo7FufkC1k= sha256:xYjo1DKppbekukqlarVMSqhBlw8TB3ok1F0KivOehQ8=
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 E23F7125DCE; Tue, 24 Nov 2026 04:21:22 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.3
X-Spam-Status: No, score=-2.3 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001,
	DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3,
	SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
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 F5z6yTHaF17w;
	Tue, 24 Nov 2026 04:21:18 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-369914-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 95EE0125DC9; Tue, 24 Nov 2026 04:21:09 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 6D3602BD01; Tue, 24 Nov 2026 01:21:07 +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=1795483264;
	b=1Na3LrWRup5EvS+ZRyfjYJVkg1nkkMVAjf0sw8lPrFNCaHaXJSlryJv4DVWdmG0RiU6x
	 q/258pRE0aiRRxnKsOfBqUz4ZXnjfraLq0zXCcTXZsSvj3MQsjqzyzfqMLG3eXPUtBcMn
	 IQ6oPSaU2DLszW2ZPQ39eRQvDkAVjHqnYvUUFQLxK/wPbmhMdNpJlirZUjhQbtZ2tRL4k
	 X/USEbRCIE/ChsGxbXZfk/XFBGFPkFClrE7i+pAzkDZT/wtntmnlkDcIMDGgw+VfXYC7l
	 u9xVazT1kX76axwzlRGbcMsCdi6rBzF37qVHT+U10urRyP4dvi7xP/ZKtB0l4ElKKvg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795483264;
	h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc:
	 Date:Message-ID:In-Reply-To:References:X-sashiko-severity:
	 Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version;
	bh=9BDulXHaTFH9WUerzen4hwlWxTAC3ppvvJGAoF+motE=;
	b=blsTDzLN5BCiYPIEXRgpijNQVuKSZ0kc/qi1/mTS39tGgCoQjBrA7UETypMhjSixF+R+
	 ufLQCFxOcDGFgDlMAVCMjxcHUfM+Ijd8Zq4NO5ZYz0wgr89lU2HQ8VdIsqB5sPk7/kNqi
	 R/ZwlRXYsSex5pWJ0odRavGvC9j4oDkSYRQmNLsgq+txiuqRPmUNQdTVM4lezmdJwRYU3
	 47CyH3ZHjzigk+KnmgSFkGeauiQ+defa4cusumdw3UWmcNUCLzalZARLRN5ELmgRAs1lr
	 8Ljpc1gTunH3qVbmCBoF0iGEYKPiKTRcXQeIlI6Ijw8UWe0l7iOuDQz0NXYVYZ4mrKw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bkne1S9o;
	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 D8873606A331;
	Tue, 24 Nov 2026 01:21:04 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bkne1S9o
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795483264;
	b=OsiwFj6wd/boJTWrN99FX7e563fIZqtVaWipBy5yP9TU9x1xWqr+0jaoGvcAimbzrGFg
	 pRgMMr8Tn7coDlTWuU/jB2b+E92XetsWfl/04RZ1bdTYAUBp/NoOpMRw+egGQcdT3dFjd
	 RIlUB2j8nAyMn7GDkQB50QYQT4bFH4IShW1QbJJiJ/aScvxQhdm7KiUxlYT1uvyba+hoy
	 aF5xlIufEQ+n0iSr5/mTdfeQXLUNpBrU27gLYse273hsR9dk5dHL71UNCeJqzn38T+cAt
	 otXQogfZ/4xs0PQsZkk7GW+s/urhehcsQJ6/I+/8vmD1CeVUAYdgML+u1AOSJlArhNA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795483264;
	h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID:
	 In-Reply-To:References:X-sashiko-severity:Content-Type:
	 Content-Transfer-Encoding:MIME-Version;
	bh=9BDulXHaTFH9WUerzen4hwlWxTAC3ppvvJGAoF+motE=;
	b=op6KFcKEav1+BuRFaMvYval/e1sZK/zU8ZigS5qPeW3Fne0cYEHLilzytNjTM+hwJ4It
	 ltHc/JO+q3dRQNfgGSCf0TRQP7IIoi5rqNuty7itJ9oKNI/aA5pJxqIESgjvfELM/dVXB
	 rne2hbmZfL4VMSndLhNvUJkkaeJZI8sBpdn6dSNEh4NTBswqGl4hWzmvSNjXj0ysHFk6s
	 ZpGVC/yB1R5WkqFmXXjv0co/pMR6YM3OH1Fz426Px23ZBXZ1O5FCRzq6fi/1g9lJkNPQt
	 u1qsQ5/aIf73xh1YVlvaf8OHqYIlqoyIkVSLwUtNnxuiGsiuGgs4tqr9YNUz49lmQdA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bkne1S9o;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id F31BB606A31E;
	Tue, 24 Nov 2026 01:21:03 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 740841F000C0;
	Tue, 24 Nov 2026 01:21:01 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795483263;
	bh=9BDulXHaTFH9WUerzen4hwlWxTAC3ppvvJGAoF+motE=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=bkne1S9okR19YKrKDubvz0IUMj2gGJv58KhVJgv/j0c8GqH2EiN3J3sfzmUkWtnKn
	 C/9tbQI2SoZGxOVEFBNj0W/imvtwJQu2oSlqdakV+Em7sinwEP7WLIPKl7GjJITkpT
	 2l5AUIv0iWo58eYIZcl5H+zOZmGBOYBOxry2wLevzl89WY3q8+4kZ+3ygPzycETtDe
	 EiNY1YHalsxE6Srkp7f26GaeMNuKEz4q0xSTcjsmh4clf8az3eN1UDNKWSX2dWumyM
	 j/IX6V+v4kkMg60RA37GA+3L+2VVDEYexKOtU/mXa3my2zJL5td5ce5PtPsToCj8Tv
	 ouxs2U1C47MVA==
X-Cc: netdev@vger.kernel.org, quic@lists.linux.dev, davem@davemloft.net,
 kuba@kernel.org, edumazet@kernel.org, pabeni@redhat.com, horms@kernel.org,
 metze@samba.org, mbuhl@openbsd.org, tfanelli@redhat.com, hepengtao@xiaomi.com,
 dreibh@simula.no, jamie.bainbridge@gmail.com, linux-cifs@vger.kernel.org,
 pc@manguebit.org, linkinjeon@kernel.org, tom@talpey.com,
 kernel-tls-handshake@lists.linux.dev, cel@kernel.org, jlayton@kernel.org,
 steved@redhat.com, hare@suse.de, aahringo@redhat.com, dhowells@redhat.com,
 matttbe@kernel.org, mail@johnericson.me, xiyou.wangcong@gmail.com,
 alibuda@linux.alibaba.com, jbaron@akamai.com, illiliti@protonmail.com,
 sd@queasysnail.net, marcelo.leitner@gmail.com, daniel@haxx.se,
 andrew.gospodarek@broadcom.com, mef@scarletmail.rutgers.edu, paul@jakma.org,
 kuniyu@google.com
X-In-Reply-To: <ba1d4f03926411d4e61a7587e41a12b0b423d841.1795393691.git.lucien.xin@gmail.com>
X-sashiko-severity: Low
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