From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (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 2E15F29B229 for ; Mon, 5 Jan 2026 14:08:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767622094; cv=none; b=vBZa+5NeDVXUcyQcxnErllGnbDo/kq9lKvcp/tjlrLt839C7+qTPswn7nC4CbeHvKdpuTOSWTb0fJdC1nFvKFRox15WoVp8WbF8hUP+pOx4NmKHrX11GpSgdUHgPeuV9va/arTUFtbqRGQ2pnyy77gnIAOrrnvUKLaYJSdAmLk8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767622094; c=relaxed/simple; bh=zEN3doId9UKmo1rLmAoDue2BHiaeEn8l3OYvCK/ydP4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=T/S0XvLhF8rc3votNnihmgBWDZB+hkDRJr+0yu13r1rLKI4EHm+5uUyRFug12RLGHAj2pT/hP3sXhfe48wnRj9TWK1R5TFb5+LRUz2su9k+s27jz/m6/YGLJxPxWEzu1INjaoFNfg6HhqWQ4D8/WSH+MRYn/EgwD2J4cKlqo7ts= 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=m5xZ/UdY; arc=none smtp.client-ip=209.85.160.170 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="m5xZ/UdY" Received: by mail-qt1-f170.google.com with SMTP id d75a77b69052e-4f8a6b37b2dso83565701cf.0 for ; Mon, 05 Jan 2026 06:08:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767622092; x=1768226892; 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=d+6m+RaUAFXaTtrp8udufW/i4uBYkmLcVK6S66Yx8m8=; b=m5xZ/UdY18plsIzXTL1Rh8l5GEkrMtzcIKwutnn4Gzwq6hFKOkEr4alzWsxWDK8dgl g+Qr29rI1j3VDemYS8BmTU32ZA/1S4GlMY7l8tBjwVMcthfGWo3041ilEnOJ21/9GY51 9kNTnoRWfMkLM6lRJyohA6aLApicp+Ww2CWHS3h0SZu/U69imbN7xVkaYKAbPN2wumfQ zOZsXCcwEVFg1INI2AVTz8OgPtW4+fJ1WS3pvvwA+syW3BX45WgZ7hl0FBUz+T7bJNq9 DMn3GZEYDCbRok5+GY0eZMGE5d12/Y5Cee4Kych4SgLxvp/bsRd0I9A9Gw4TRIziw7I4 WdpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767622092; x=1768226892; 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=d+6m+RaUAFXaTtrp8udufW/i4uBYkmLcVK6S66Yx8m8=; b=P2xIIo9Wm2opaUmQ1T47IGb0VNGj8Pyq+N5u3l3ndzl9vet8kEvMQUKVhEucyDZfZg 0wsURlGP5PGRZkVEa/ZZa7aQFS11jH/eRqYqYCE4q4ZHbO/PDchfurMk5Rt8Cwn/+EQJ OJ17skbVuRB093uXGHOJCdnhpICl+R2zv7grPWWUJCksCrs7/BZ1+YQ13qW0XOgmWfGD 7eiERVTeSCNhCosNE5QqK9n4pBGyTPucK7aufmC9SrE47nyicKCqcV4lvoiWJnDUgnqO IQtZK53qySqo69M/tkBmtOnNSV/cv0afJZ7228HyrO0wMQzQY5f5Na9tnDbWw9SQLOL6 xxGQ== X-Forwarded-Encrypted: i=1; AJvYcCXrJBFqAmDFOeEnNteCpX+AQr/+Oy2O8AnxUnnBHScoOXRrfSNliOo62ZivVvnlczi8wzRL@lists.linux.dev X-Gm-Message-State: AOJu0Yza1MZoBV7OUTkjnmOT9TF1BcU7mzv520QnydM+zsjChU1SrmzZ hbRviz8HRpIW9xef4SDTL/KeskLsJZE86Uu0wYcrqi1C7Wna+dZNM0PE X-Gm-Gg: AY/fxX7psoh48AAl7wnWXXPcUcC3XtsTCdA6PEzM/maLanoYKeSFyB1ivR1Ew7D1oU4 t6puIZadlKpgnBTpB0CxMZ4OII9M685SkQw7M+5DyRzX0PdoUGRfxNRHPKMNQUfDxl+3f+yIFOx Y2ZoR1AvJfC71OQm75EWr3kToTI8B+WrS5jF9vsxzrvuztBe8r9OiUMBpkpHqNvt/jO7sC2m/on 964T/rLHzufH+pTpOaoRwWNR5XlwkksnJwWlwOfHrMxuHLf1LTvT6V5gxC9x/Ro9PL2X11O8ZDK n1dCXEEki8OgfWYJh21OchnZh/dCQLDkjCziDC568zuc85WCT8X9UjzVskEFYxqZgMq1KsxEdqO ethr7X0v27Mth9y2yQEyyC1a7hzQmX68aOc2nG1Qy1qFTcyfJ1UuB7CmWiH6W+C+STxtpOoAEyg oiw92NcW8u1hy+U+k8w0FqzpwTbtMMuf/SgC7izfgu4RaMWmjrMdc= X-Google-Smtp-Source: AGHT+IEHuRM2+t5qnRSVI0kl/We7szrHGppbL3OLinZ2JFHLaZJDDk0NxAF77vZNPlpHu38oz5oaFA== X-Received: by 2002:ac8:5914:0:b0:4f1:b9ec:f6a4 with SMTP id d75a77b69052e-4f4abceebf3mr885961071cf.33.1767622091533; Mon, 05 Jan 2026 06:08:11 -0800 (PST) Received: from wsfd-netdev58.anl.eng.rdu2.dc.redhat.com ([66.187.232.140]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4f4ac64a47esm368957221cf.24.2026.01.05.06.08.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jan 2026 06:08:10 -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 v6 01/16] net: define IPPROTO_QUIC and SOL_QUIC constants Date: Mon, 5 Jan 2026 09:04: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 944027f9765e..b4563ffe552b 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