Netdev List
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: lucien.xin@gmail.com
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
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	[thread overview]
Message-ID: <179548326096.3135.1557496253047696896@kernel.org> (raw)
In-Reply-To: <ba1d4f03926411d4e61a7587e41a12b0b423d841.1795393691.git.lucien.xin@gmail.com>

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

  reply	other threads:[~2026-11-24  1:21 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  0:27 [PATCH net-next v19 00/15] net: introduce QUIC infrastructure and core subcomponents Xin Long
2026-11-23  0:27 ` [PATCH net-next v19 01/15] net: define IPPROTO_QUIC and SOL_QUIC constants Xin Long
2026-11-24  1:21   ` netdev-bot+sashiko [this message]
2026-11-23  0:27 ` [PATCH net-next v19 02/15] net: build socket infrastructure for QUIC protocol Xin Long
2026-11-23  0:27 ` [PATCH net-next v19 03/15] quic: provide common utilities and data structures Xin Long
2026-11-24  1:21   ` netdev-bot+sashiko
2026-11-23  0:28 ` [PATCH net-next v19 04/15] quic: provide family ops for address and protocol Xin Long
2026-11-24  1:21   ` netdev-bot+sashiko
2026-11-23  0:28 ` [PATCH net-next v19 05/15] quic: provide quic.h header files for kernel and userspace Xin Long
2026-11-23  0:28 ` [PATCH net-next v19 06/15] quic: add stream management Xin Long
2026-11-24  1:21   ` netdev-bot+sashiko
2026-11-23  0:28 ` [PATCH net-next v19 07/15] quic: add connection id management Xin Long
2026-11-24  1:21   ` netdev-bot+sashiko
2026-11-23  0:28 ` [PATCH net-next v19 08/15] quic: add path management Xin Long
2026-11-24  1:21   ` netdev-bot+sashiko
2026-11-23  0:28 ` [PATCH net-next v19 09/15] quic: add congestion control Xin Long
2026-11-24  1:21   ` netdev-bot+sashiko
2026-11-23  0:28 ` [PATCH net-next v19 10/15] quic: add packet number space Xin Long
2026-11-23  0:28 ` [PATCH net-next v19 11/15] quic: add crypto key derivation and installation Xin Long
2026-11-24  1:21   ` netdev-bot+sashiko
2026-11-23  0:28 ` [PATCH net-next v19 12/15] quic: add crypto packet encryption and decryption Xin Long
2026-11-24  1:21   ` netdev-bot+sashiko
2026-11-23  0:28 ` [PATCH net-next v19 13/15] quic: add timer management Xin Long
2026-11-23  0:28 ` [PATCH net-next v19 14/15] quic: add packet builder base Xin Long
2026-11-23  0:28 ` [PATCH net-next v19 15/15] quic: add packet parser base Xin Long
2026-11-24  1:21   ` netdev-bot+sashiko

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=179548326096.3135.1557496253047696896@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=aahringo@redhat.com \
    --cc=alibuda@linux.alibaba.com \
    --cc=andrew.gospodarek@broadcom.com \
    --cc=cel@kernel.org \
    --cc=daniel@haxx.se \
    --cc=davem@davemloft.net \
    --cc=dhowells@redhat.com \
    --cc=dreibh@simula.no \
    --cc=edumazet@kernel.org \
    --cc=hare@suse.de \
    --cc=hepengtao@xiaomi.com \
    --cc=horms@kernel.org \
    --cc=illiliti@protonmail.com \
    --cc=jamie.bainbridge@gmail.com \
    --cc=jbaron@akamai.com \
    --cc=jlayton@kernel.org \
    --cc=kernel-tls-handshake@lists.linux.dev \
    --cc=kuba@kernel.org \
    --cc=kuniyu@google.com \
    --cc=linkinjeon@kernel.org \
    --cc=linux-cifs@vger.kernel.org \
    --cc=lucien.xin@gmail.com \
    --cc=mail@johnericson.me \
    --cc=marcelo.leitner@gmail.com \
    --cc=matttbe@kernel.org \
    --cc=mbuhl@openbsd.org \
    --cc=mef@scarletmail.rutgers.edu \
    --cc=metze@samba.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=paul@jakma.org \
    --cc=pc@manguebit.org \
    --cc=quic@lists.linux.dev \
    --cc=sd@queasysnail.net \
    --cc=steved@redhat.com \
    --cc=tfanelli@redhat.com \
    --cc=tom@talpey.com \
    --cc=xiyou.wangcong@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox