From patchwork Wed May 24 14:49:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 9803 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c790:0:b0:3b6:ef29:a0d7 with SMTP id b16csp3086372vqu; Wed, 24 May 2023 08:04:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4w4CXPb1Ykp3e9RA2FgbVZKnqbnKv1ifQz4COWLE1UcacPZ9puGFMFlFLv8qJ8Rs/zNWIo X-Received: by 2002:aa7:8894:0:b0:64d:1333:6f3d with SMTP id z20-20020aa78894000000b0064d13336f3dmr3874236pfe.10.1684940653358; Wed, 24 May 2023 08:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684940653; cv=none; d=google.com; s=arc-20160816; b=IySJ34sRH78qlijZhe+n2x9aqB2Z8K1ZKt9kZEg8BUQh9bK3HY6MrafzcmPCKC/n/m s/842+mfTZH1len/V8MAWY0Tqk3rRqy2CmFkNF+i2931mbygJPVm4fEg6E0cYcHDVML6 xIKz3r/I/ByZgUl4ppxTPtWsz32tClJkB78KORAyT27bgJmrUPygHy7D99y9LTTJf9r2 aBJPpGs+IoIhwJj9102F0Iz5QtZMNr79at0Zg1sZheBr+zU3JKcStNnpnhGsvtAXg1zj AtPqqnicqqphqTdYCns7fgK32LnM7hIpqjQvzfQXDrvPTn7OqPqZBGmoSDnACok9kZQ1 /sjA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t125-20020a637883000000b0053b87b868b3si1399936pgc.361.2023.05.24.08.03.57; Wed, 24 May 2023 08:04:13 -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 S235980AbjEXOu1 (ORCPT + 99 others); Wed, 24 May 2023 10:50:27 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766788330425905281?= X-GMAIL-MSGID: =?utf-8?q?1766788330425905281?= 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(-)