From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E831736C5B9 for ; Mon, 2 Feb 2026 14:29:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770042595; cv=none; b=SVbgdIq9jXrXOsc3UMzJ03flzcpq0AKZwEsiOS4ig5bWJnEyw9Ol5ca5y5wI64RilL3rktwLmSMgbkgXDoVu9oFnsQQsFUceL6Q5jie69/rAJYyO5JWyxMbyXMPijZcy9CtKdR68tyOBUM14b6NlOtWBiuFyWsbUdeIC7wxGXl8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770042595; c=relaxed/simple; bh=EmdrmrQatIkWYrWc3Tso6zV2W4IPfCbeSJjTG87cs5k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bNwKHkuVqWxlya5V/FSH9T92vqLUoRUbCJWPLd1YNROcRSq8hwVJtHC9h6pZqHFxXK0OL6k2L29r2uQRdxLGiOkMMLOdQq6H4eFopuAr9t5w8oLReHm0J7ojYAE75g9utg0QDZEcef+Wt6sGUSor5SDhaLz6SDWH5EJSOUuj+Vc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=g9NdgTuQ; arc=none smtp.client-ip=209.85.160.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="g9NdgTuQ" Received: by mail-qt1-f181.google.com with SMTP id d75a77b69052e-501488a12cbso55178051cf.3 for ; Mon, 02 Feb 2026 06:29:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770042593; x=1770647393; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0XFWhnozczQdBY9wOF6c5V46t5MOgQ+lGzwQjjTNU9A=; b=g9NdgTuQwrtAeMG5mynIdbPXyIVgBOddSKZPHHzJo1dC0DIJhaXYbJnxzaRaFiEJdO ATYG9D86uf7TiTJTWBjHTFqh+nDkxBGrvo9H01qyzTIHYZtrKGHr3+SjmJGGVsgXF3e3 kAt6yN/8rCYA9ELQFAW/JxsK+d7sw05o+sFQnkVFxZhS8+iz+p+mogtd7peKZHSxsjhO T7ojS9Bv7FZdIyGqNAtJX4ius4oSjFymMEWVd7zEuS0r/ITOhRAbsMOeVq0MLDd0AGt7 MH3d3YV0ybMfjYl1UnGK1OhG4DaYDKropS1m8831xAerq8lPsrcsiUgOY46dPY06oADI nyZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770042593; x=1770647393; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=0XFWhnozczQdBY9wOF6c5V46t5MOgQ+lGzwQjjTNU9A=; b=KOcZlNZDrZcxA5oGYad+2dhHKQsppd4eAIX5LELpHRWCuX+PVT08iJOFrO+S2v4v6+ afjFtfsGF+9xCRNluLS0ZisD3pXtftEPyJ1l3RrtkMGBHIdz1WOXBbh+OGWJkOaqStnd hL+IYzKPnrY5bzigh7K4mUUo99iXdOLRFYaw6NQE8OSmhoDteIJPyMb3CrWiy8R19/+J qqH52IOITSuES7SB21ojz5EIALZenGC7NC2ohnGwPi23zTu8Ga2U9yxIYnaLWWs56pF1 WfuFjPY8pW8NYPbtq/IkBwrh9ZBu81cs+gP2TV4CtoZBcsjyxuP9NqVI5kWCMi8jSfyx heTA== X-Forwarded-Encrypted: i=1; AJvYcCUJSkuNj2yd+d1t0gNnKg6qKhpY1AIWxQZ9gdV8/a4wSaS5EDD1+BPgfwNoChdzEW+SozOB@lists.linux.dev X-Gm-Message-State: AOJu0Ywkc2hHOubC1WXwOXlrjNJfC3cLNZX+wfR7o3HaWfJXvCYfMZcN Wb6E2EvssKIEKemNKlSoJTKV1oyFGEJCV2enazVov1Ag5MAgUJips4O2 X-Gm-Gg: AZuq6aK0C4zsGWfoc018eleHp6KDBbN0p5gtQ0VYhojdMyOz6ZEH13TusUHp5/u3ysV B7sGg0+ixpJAwzKBFh1+O/1t9qw/4XmloPuGh3UUmZaBCRliNUI6z+J4/pAD57ieYxsZGjJ3ZlO sb/Z99mgxOryDvWsTepHhW7TN/cZTXgnRl3EBEW1V+7zvSihmBYZnfWiVy0F7x9V0MQQf9xnAL6 QYqT5bzTy2tg2Km24L1eoQjgHkYawYUTF26QlQhEWfxtY1zSRHyIxauoUmQAnm6pTmciyPWe21s WzPAU5qAHvKiKcLL0ZoBBNJi63ntCuYtWeDeBdnmFG6dx/amaUQvLoDR0XiDkLzHr0rP5MeWjAQ BhLzx4847B/zBLamhmjHv8KvdgIttgbKwRWvj8xQU0fdsyAR60XRHS0UQdzvLi4OzigD847RzFH I0O6v0P/dylPv6GIigyuMDJOIEP4giH0AuRpWqD5kS0JZBVUhXoWM= X-Received: by 2002:a05:622a:110f:b0:4dd:ca89:8d7d with SMTP id d75a77b69052e-505d2288fd0mr169731871cf.56.1770042592748; Mon, 02 Feb 2026 06:29:52 -0800 (PST) Received: from wsfd-netdev58.anl.eng.rdu2.dc.redhat.com ([66.187.232.140]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-50337ba3981sm106865171cf.16.2026.02.02.06.29.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Feb 2026 06:29:52 -0800 (PST) From: Xin Long To: network dev , quic@lists.linux.dev Cc: davem@davemloft.net, kuba@kernel.org, Eric Dumazet , Paolo Abeni , Simon Horman , Stefan Metzmacher , Moritz Buhl , Tyler Fanelli , Pengtao He , Thomas Dreibholz , linux-cifs@vger.kernel.org, Steve French , Namjae Jeon , Paulo Alcantara , Tom Talpey , kernel-tls-handshake@lists.linux.dev, Chuck Lever , Jeff Layton , Steve Dickson , Hannes Reinecke , Alexander Aring , David Howells , Matthieu Baerts , John Ericson , Cong Wang , "D . Wythe" , Jason Baron , illiliti , Sabrina Dubroca , Marcelo Ricardo Leitner , Daniel Stenberg , Andy Gospodarek Subject: [PATCH net-next v9 01/15] net: define IPPROTO_QUIC and SOL_QUIC constants Date: Mon, 2 Feb 2026 09:27:27 -0500 Message-ID: X-Mailer: git-send-email 2.47.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: quic@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch adds IPPROTO_QUIC and SOL_QUIC constants to the networking subsystem. These definitions are essential for applications to set socket options and protocol identifiers related to the QUIC protocol. QUIC does not possess a protocol number allocated from IANA, and like IPPROTO_MPTCP, IPPROTO_QUIC is merely a value used when opening a QUIC socket with: socket(AF_INET, SOCK_STREAM, IPPROTO_QUIC); Note we did not opt for UDP ULP for QUIC implementation due to several considerations: - QUIC's connection Migration requires at least 2 UDP sockets for one QUIC connection at the same time, not to mention the multipath feature in one of its draft RFCs. - In-Kernel QUIC, as a Transport Protocol, wants to provide users with the TCP or SCTP like Socket APIs, like connect()/listen()/accept()... Note that a single UDP socket might even be used for multiple QUIC connections. The use of IPPROTO_QUIC type sockets over UDP tunnel will effectively address these challenges and provides a more flexible and scalable solution. Signed-off-by: Xin Long Acked-by: Paolo Abeni --- include/linux/socket.h | 1 + include/uapi/linux/in.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/linux/socket.h b/include/linux/socket.h index ec715ad4bf25..dc80de8d8c50 100644 --- a/include/linux/socket.h +++ b/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 /* IPX options */ #define IPX_TYPE 1 diff --git a/include/uapi/linux/in.h b/include/uapi/linux/in.h index ced0fc3c3aa5..34becd90d3a6 100644 --- a/include/uapi/linux/in.h +++ b/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 and Secure Transport */ +#define IPPROTO_QUIC IPPROTO_QUIC IPPROTO_MPTCP = 262, /* Multipath TCP connection */ #define IPPROTO_MPTCP IPPROTO_MPTCP IPPROTO_MAX -- 2.47.1