Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5871906rwd; Wed, 24 May 2023 07:53:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7bR/JOA4+wR6RFCclVUJuHrWw6nSERpYqIQ+PzQyBk3qFctXcRLxWZ6BOKDUUD2E0Hibdi X-Received: by 2002:a17:902:db0a:b0:1ac:5c90:23e with SMTP id m10-20020a170902db0a00b001ac5c90023emr24045882plx.7.1684939992093; Wed, 24 May 2023 07:53:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684939992; cv=none; d=google.com; s=arc-20160816; b=0W4aEleKxZAkCC5DbDz6Hf5AwzaNosPA51zbjvKvIvocSkbEO63uEnwIDHjJgH+NS9 lUQ+ftzWHFlgUzwUEIp/5OvXlnuXB7pRbIuqDpwNV9r+A5tbmRpS+LoqnB5rgj4pvgFE W70W1hBB6T0oYdelAdgx9Axo1OKwPok0oNtkgNdx9S8zkQDvULfS/DvVUA2IlDCF1da+ Uu4rmp1TPoDAkCVktQSLAeDn6Ovq1OZJcVdT+ts0ipbrK/bW4gaeezBW6yq9g6gU9dzG 4nRb9gWfjiB6vm0N6A8m6ko7TKDtMi89hoc41wr36MwERbsLIXsofNSCw6ImOuMNeLKa zbDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6x0d7ICEdgzrcRTczgY+40SEU6mXT880gCShmbLBLHI=; b=APD/jQH/n5yj/E77dlh9wItG6XHKz+k9jj8Np//yCh4zgsH8FSPYr5O6ZRg95KTsxn d+Tot3PlKjvnhDUvvJ8nwQKGX0E1pvhkBPt5I/DQe+Nv8UUeetuilIQ9Zqpr4Uujo1c1 OiwQgZTP7WVb814pcYlZXmQy4oZKGYzMVfXApTbZWr321WuUZtJYwqLdXr4x8Nr1HifU GKb5h7M/2KnIYVSbtZzWzGcAtty93DXITgeLTmrZQ/AIMk5HtRkie5LHMJki9UvAdP4G 4+YCf1b+KdZumjeMs27wcn0YNLDYsfZskBXa1ug3YtcJ4jUh1tZ4eaZOQN/w47bg4L1g E4Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Nf7DbeMa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16-20020a170903245000b001afed1f1b74si151566pls.400.2023.05.24.07.52.58; Wed, 24 May 2023 07:53:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Nf7DbeMa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235949AbjEXOu0 (ORCPT + 99 others); Wed, 24 May 2023 10:50:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235363AbjEXOuR (ORCPT ); Wed, 24 May 2023 10:50:17 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9C6A130 for ; Wed, 24 May 2023 07:49:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684939772; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=6x0d7ICEdgzrcRTczgY+40SEU6mXT880gCShmbLBLHI=; b=Nf7DbeMad4/XRcgazI8BfdgZLgrMAD6J1Ov8fhKSZMN8j5L5Yr8/8NCe1/9TfkVMjywWqt vmhg2LW7rN5UQgIJb+/Z5rptSG63PL3oq1O1arVd6/V6X1cuslvDG+xZ8RLjURb1u+zX+v NUfswxgCSQ/VixUTCn440fVkRkqom5o= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-668-ZiIQyxGuNnic9eYKRn8upQ-1; Wed, 24 May 2023 10:49:28 -0400 X-MC-Unique: ZiIQyxGuNnic9eYKRn8upQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E9FFB3C397C6; Wed, 24 May 2023 14:49:27 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.39.192.68]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4FC9B1121314; Wed, 24 May 2023 14:49:26 +0000 (UTC) From: David Howells To: netdev@vger.kernel.org Cc: David Howells , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Willem de Bruijn , David Ahern , Matthew Wilcox , Jens Axboe , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 0/4] splice, net: Replace sendpage with sendmsg(MSG_SPLICE_PAGES), part 2 Date: Wed, 24 May 2023 15:49:19 +0100 Message-Id: <20230524144923.3623536-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here's the second tranche of patches towards providing a MSG_SPLICE_PAGES internal sendmsg flag that is intended to replace the ->sendpage() op with calls to sendmsg(). MSG_SPLICE_PAGES is a hint that tells the protocol that it should splice the pages supplied if it can and copy them if not. This set consists of the following parts: (1) Implement MSG_SPLICE_PAGES support in Chelsio TLS and make chtls_sendpage() just a wrapper around sendmsg(). (2) Implement MSG_SPLICE_PAGES support in AF_KCM and make kcm_sendpage() just a wrapper around sendmsg(). I've pushed the patches here also: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=sendpage-2 David Link: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=51c78a4d532efe9543a4df019ff405f05c6157f6 # part 1 David Howells (4): chelsio: Support MSG_SPLICE_PAGES chelsio: Convert chtls_sendpage() to use MSG_SPLICE_PAGES kcm: Support MSG_SPLICE_PAGES kcm: Convert kcm_sendpage() to use MSG_SPLICE_PAGES .../chelsio/inline_crypto/chtls/chtls_io.c | 121 ++-------- net/kcm/kcmsock.c | 216 +++++------------- 2 files changed, 74 insertions(+), 263 deletions(-)