From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (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 D6B032853FD for ; Mon, 26 Jan 2026 14:52:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769439180; cv=none; b=el6twD48Ugc0jJjhdc1SARDHlPnSfJLAHJjUcBAvplSOpIyTsqrS0Xq/efWKjmcCl2I+fPWrsRou6WkIgJrTr533wQPn2OfGeRd3pW7smF+y97fG+uuTOr2q4a1glZ7CYeo0/xwk/1YVw4x9pDXcIUB9g3vzOw6FvEsHyJ/KNZ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769439180; c=relaxed/simple; bh=EmdrmrQatIkWYrWc3Tso6zV2W4IPfCbeSJjTG87cs5k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VOQvnipxgC5yqQnoUBaYHNwXB4tspOcTF0tqQG/17fI7/uiJ6UteQ9Flq4A5f3jFo8lkz+4WED91Y86anysTRf3/XBKnjHTukCYcdkG/59owp75mZPWXb/Ih0pYx5+Lz6Wqvrdx1GPcXFc2sL4VMDoSNrRAukzxZt298Wtjhcq4= 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=J/YYIX5h; arc=none smtp.client-ip=209.85.222.174 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="J/YYIX5h" Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-8c53198a65fso477734985a.3 for ; Mon, 26 Jan 2026 06:52:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769439178; x=1770043978; 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=J/YYIX5h69pORPlJzOIEF6DK08/SmIFYt1DSyOTOPwEAhzO6oS5DRDAuGK384EujJ2 rnd+UZLJWXrJwohwb/dZwotxYtNEH54TRD7CwwUlCAmqjz48Z0ddaCu1TZZW3WzOvUdW KXbpzV0f04O5XMYotf8VUfOHl9Aqu+W+cwABspf8NqvvI8vA9Rss7/GUtA6+xfrnM8S2 v8iIAky7edWFrso1mRy1Lx2y6f4XaSRPoKpz95hi7C9lLNzkT3wVobxGDZTWOLaqxWlB PNqWuutKPKnJ2qtygReCOCJnknPaiX2L7e3ebIacQpIh2PUPb6GsEp82JrUKAyiov/fC ADZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769439178; x=1770043978; 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=X+ygxWkZKegRnFsfbZP1HQkrzaD8sfmxODeU845Aoxi5B64Hdl6WDvBX54KZpvHqEE 2S1c+cJ09Kr+EhIJHVFKgeOrARTUmN2ZxqnxJAZN7tPWsMDhoLthMQ5p++QBDHM5S904 OJ95YFXbNovRQ4n4CMk+E9mll+6Ehh90+t0/0rwAyRlAKZn0o7qMY1BpLTFDoUguCmq+ +bCl2g5L6z9DjL8mxIjqdZO0ZRvlWBlW1hgAYT6Ol5jwIdWpl5CCD8joUA45rOD2eFvY pZLhTbxHJNM3gLFJmE37cTd4P/WAXKSZOni+8ivwfJQhbsGcR0MyebVAVpkywWOixCQr B0Pg== X-Forwarded-Encrypted: i=1; AJvYcCVrK2yUe/0YqegPUQcpn9VSPzQb5APg08bwT2nOL9W7eeP6kugtlTUpdaUBS5BYPWnWvf9k@lists.linux.dev X-Gm-Message-State: AOJu0YyXiQR+zMSePx74kVbrzF4GyrDOI26qMinpmLeIRLEKe9uaWOLB OJObIYI10GC7M2UJ6iUW3bdZFqzXKA9nlSv32eVyoiWuLSZYurnW7WVe X-Gm-Gg: AZuq6aLr6D7uRUPdiUUuxbj5r0PYlnr+S+g+Q1WEscLaigORfbCPm1hjNy+bRZxZHqS mMiBdhsm7nipOhP3VyZ37JpfgbG1UQxziQMYaGFISFvWsTlOe6PXZM4M9qLsG+RKR0/yC7jXRLg sH6KaRUcJDiySmKFZgmyCY8FMCRszOT4cE2LsPR28AyGAd8PzyLiMMqp4ZICqr+R+fAztYQN2pu YlAwdbT6Xy2ZWshLmZMLz/jF8TAtKiEIh4hEOL+2LUS5mxSzaLvXemJe3KHjSIiqqZqrQLe/7M2 8lqi2TluFuqdTUaQQkxkWos8aPAfUwGfUR2QWYNsmArqpNk71xrSpZuowe/I9JxL9gYsUKc+9it WDZNAdw/CwotkUAXrDgHZXzozdmvVtoRes+Saz6GoWWM9A5r/Jk/OQe/nxodEbvG3IY/qc54eva mTOBoTR8WOF0G3LClkxXznhc8TUkpL9w88pmQU7nN9Kfn7oGUS9cQ= X-Received: by 2002:a05:620a:2a05:b0:8b2:eb66:c64 with SMTP id af79cd13be357-8c6f95c5255mr555017185a.29.1769439177669; Mon, 26 Jan 2026 06:52:57 -0800 (PST) Received: from wsfd-netdev58.anl.eng.rdu2.dc.redhat.com ([66.187.232.140]) by smtp.gmail.com with ESMTPSA id af79cd13be357-8c6e37d2422sm1018611585a.18.2026.01.26.06.52.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jan 2026 06:52:57 -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 v8 01/15] net: define IPPROTO_QUIC and SOL_QUIC constants Date: Mon, 26 Jan 2026 09:50:59 -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