From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) (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 647C6DF76 for ; Wed, 25 Feb 2026 02:35:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771986937; cv=none; b=upNVGn/4k8wFWcdTBTgyT/mH0myK61kyS8ELzk9e5gzcTYxLzXrGh5aUNqM621W4207pEIytcrbd3dvVGyPDMvnLaJxNgdZZAkn1GsQx9dECbEWAgT3ZEP2SzuijiSkv9+jJt/V/0KEef+ImjEbTrQesBl+FxUP+N7uEc6HCL9A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771986937; c=relaxed/simple; bh=EmdrmrQatIkWYrWc3Tso6zV2W4IPfCbeSJjTG87cs5k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=W3bz8yc182sWN+Etl9X0rVoshAO2maZn3yOlLxzSSVDylHIK1xUGyXK76CHt6okq5Ubj9fizv3/2sW+PD7U/tpdGxh11am/tacxYwstylJoGHGi9A40kDYEg0/WBQMU8ewVfmIqae0/SdvJn/lZuzu7RWbvT09MyWz1LXzEVXWw= 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=DzfdM3UL; arc=none smtp.client-ip=209.85.219.49 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="DzfdM3UL" Received: by mail-qv1-f49.google.com with SMTP id 6a1803df08f44-899a98c2421so27038006d6.3 for ; Tue, 24 Feb 2026 18:35:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771986935; x=1772591735; 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=DzfdM3ULd1DmHfsSuUlG4EVBUOAEq45wYoeJwk1b/B4fQYumv+P3qDlO7nfBNiXjlm 2l5d4+WbNI7bThE51IOa1EqN7gf2tkwPQcPDXPdZQ3ZB4EFwoPoI+tjn4hnIa2MxzR1P DPLfVWSUY8ycmRKUFmORbdX92mQkuVmz0aPF5qlQ/miUH/7MUEYEYMOPpATih5e9fE9f U6VxM3+ylPORarJZKSjcgPHkSbPAuxGOHTPkvfUawQxilmrNYOsVADtarpIjrbKs0ySo MchCfb4o/0GFn6PXbCa68ZwG1qk/Ox4R0Y0mbXlYOTTkM/+WzAOrUsa6gUgjzO4pW49V W3rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771986935; x=1772591735; 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=BozvpU39fuAdMA/3y24BDIlrkVTK5jtC2j25tqunDo/f7yTd/kWEpHbv7wY2m0wUuc /OHMOtmhD9InefS5tIN5uXqQlgNPmBq8inLmxoXwyH6KLmiZMpvxLU2XSYKiwpc9/aXc mK5HVQ8THcC2DKQ0QclpZSTVphWJ5nSeUgw97z0BSC2aeiX4WGJjY0HQWUdtr5yd5Eju poZuASC+X6NHHHVWkRHpK2V0HivnStBjiPxZcQud6j/c/W2tKR4I8rSsTESjMVRRyhyH UJ4AedLqO9s7EL8rz3jxovxu63fgDm6yH1r/W8JcFIdB+DIz2KzQ28QPZorw80owV/JB vDJg== X-Forwarded-Encrypted: i=1; AJvYcCXWZop7I1lfe4Am0c+wYevKee8cnA1GqD+VJ8hsMIBLMIfOgbd9vrawQDlOJdtlJydqgYu/@lists.linux.dev X-Gm-Message-State: AOJu0YwKMDrKe50BPXYjj6J4vCLe9susNvalvy3ipMp6SPqrcg2OiGPx r2DpPK9S4XaPN/kRU7y/u8Ue8HUC0QDqN5+/4WYfLWdtxNbtIMX/tjGc X-Gm-Gg: ATEYQzzuaeWWb5FeWCiRNtDZvGEOkQGdDqnfpAgiM8yqrHQl0HukwNo0EVTGkI8iT+m up54ucb8JwpHBLfCHDxdk28wXMvL/FLz6DotMvxqOi5ra905HNnCzP1MGdAmOTgsau8dRWyyQVB yCwM7If+dcxP5/xuUL2LtxVbW7PrRpKHUvCHf0z2N9Pnpkwao1kFiMXCU2bkwTN2dp4eFZxtK2K szltn4TBI0vxUp9gxihSEkrSQgRSkgpJP2P4N4+OjCaBROEJGdNQByXuwZCLpFXg8aFnKsjuS2r lYkKb3NCg0O1BxPbJ9yfMq8HtQp8ww5I9CMwNjKOyZZ/CC/K21LX1XoixfoxfF5N8DrhC3eLuzP DBTcVewsqHxC8cDbMWS7JaztAVa9pBHl+cwMQtRBTtMbnWr7yBB8HLhqtvlxdRD3RfNFRetXSDc c+nm854LMaMpa32StDDMLfcRQ8+kVgzuRkzrZ0JhmfMhTqe2r0Nrgbj8WSxTP41/nKxEe17CLg+ nKcmPPS5xSzzLqnx3CvyBaJpmBLVIe4eTx5v05VaHZNuigasaVZNjGHzJoNL5+Niw== X-Received: by 2002:a05:6214:e4e:b0:87c:2c0d:309e with SMTP id 6a1803df08f44-899b8c1ee0bmr10279896d6.37.1771986935317; Tue, 24 Feb 2026 18:35:35 -0800 (PST) Received: from wsfd-netdev58.anl.eng.rdu2.dc.redhat.com ([66.187.232.140]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8997e62f453sm112363586d6.36.2026.02.24.18.35.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Feb 2026 18:35:34 -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 , "Marc E . Fiuczynski" Subject: [PATCH net-next v10 01/15] net: define IPPROTO_QUIC and SOL_QUIC constants Date: Tue, 24 Feb 2026 21:34:07 -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