From patchwork Fri Oct 13 22:51:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 1848720 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4S6hkR6hGwz1yqj for ; Sat, 14 Oct 2023 09:58:23 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F3D70385B515 for ; Fri, 13 Oct 2023 22:58:21 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id B808B3853D02 for ; Fri, 13 Oct 2023 22:51:15 +0000 (GMT) ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B808B3853D02 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=68.232.137.252 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697237478; cv=none; b=fgBsJlnq1n020llgXECX87jJ7j6qzo7L8DYmWNpuO+cvmiONpCWLB5bLiAULeY+LbVSM0nGSZdVc6sxo0/pQmhC4kL/MakNgnEfzuKe1JijMopyX0Yl+FSVbG0GD7BdWFZSdvs6wouDGjq6bRxk/i7UlmyBjj0+Xzda0hbqFsus= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697237478; c=relaxed/simple; bh=oBEPYmoG9Gr8K7Fie+x/JLxUJSe1tsvXhs+8k8SJppA=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=U5LcGKp1FqZjyUgzdNEya/Ul50wfOmsfEWrVEbhLxVC1t1CehDLmEbPLphDW0HkNRvu63T3UafoYqV8ZNVmG8AZ+Q7P680SIYG7jqcrXS/FFlwX26j9HGWW9wwmCeoRxwgl9AkOprTiOezdvVWi/ozOpNa2qk09bzhYrbP3t+oY= ARC-Authentication-Results: i=1; server2.sourceware.org DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B808B3853D02 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-CSE-ConnectionGUID: cM6xZ8JFTr6vAnY0hfpz9w== X-CSE-MsgGUID: WPRymLQEQBaYWOWZgH2Y/w== X-IronPort-AV: E=Sophos;i="6.03,223,1694764800"; d="scan'208";a="19428144" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 13 Oct 2023 14:51:13 -0800 IronPort-SDR: 9hLQ4iGrM+hfA/zAHAl3lwmDu2k2nn+BAg67QxIJ5dJ/R50zTuCx+oXyDUIdSA2Nh6kL6QHPHA vxLJEjFwbSs/r4wCMd1nGv91rHsrp03wP+OQ2d9toi3azrR76bEUiWpeH6d2IjLUfXP6Dh9VFF 52d6nCEss9zSAnxwc6sJ4jdGjJHCbIf+f8TpQINH6DkZmsrfOR6dOX8bPiq02dq2G2gyMKUaWx qIw1EcyVoz4ubR3PR7E31VWsllESvoyGhPpmakXsc++JcRrr6C3fiVRlnnSxqiq2qHl8p2esQd Jdk= Date: Fri, 13 Oct 2023 22:51:09 +0000 From: Joseph Myers To: Subject: Add MSG_SPLICE_PAGES from Linux 6.5 to bits/socket.h Message-ID: <3fc787f2-1056-3595-23e3-623ae7b429cf@codesourcery.com> MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-13.mgc.mentorg.com (139.181.222.13) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) X-Spam-Status: No, score=-3109.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Linux 6.5 adds a constant MSG_SPLICE_PAGES. Add this constant to glibc's bits/socket.h. Tested for x86_64. diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h index 57b05715be..73f62d02e9 100644 --- a/sysdeps/unix/sysv/linux/bits/socket.h +++ b/sysdeps/unix/sysv/linux/bits/socket.h @@ -247,6 +247,9 @@ enum #define MSG_BATCH MSG_BATCH MSG_ZEROCOPY = 0x4000000, /* Use user data in kernel path. */ #define MSG_ZEROCOPY MSG_ZEROCOPY + MSG_SPLICE_PAGES = 0x8000000, /* Splice the pages from the + iterator in sendmsg. */ +#define MSG_SPLICE_PAGES MSG_SPLICE_PAGES MSG_FASTOPEN = 0x20000000, /* Send data in TCP SYN. */ #define MSG_FASTOPEN MSG_FASTOPEN