From patchwork Fri Jun 9 10:02:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 13273617 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C1A73C7EE25 for ; Fri, 9 Jun 2023 10:02:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1CDAA8E0007; Fri, 9 Jun 2023 06:02:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 106588E0001; Fri, 9 Jun 2023 06:02:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E9BED8E0007; Fri, 9 Jun 2023 06:02:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id D3CF68E0001 for ; Fri, 9 Jun 2023 06:02:39 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id ACAF5C01BD for ; Fri, 9 Jun 2023 10:02:39 +0000 (UTC) X-FDA: 80882770038.17.7465C9D Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf06.hostedemail.com (Postfix) with ESMTP id D93BC18000B for ; Fri, 9 Jun 2023 10:02:37 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=E6aIyfPg; spf=pass (imf06.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1686304957; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=SombcmEIcaRaYVTgKnrWY9WG1lMYc9bVEGm8HvALgWY=; b=1TNa0ZZovxDm3ggUToCE5cgYw3tjRl2T1G8A3v94Cn3v9xL3yLMmQiZUz3p4fqQ/UIwI6H zYIuFw5XF1czWKCZPxqVOTynV1raQ9Oc2OG/ofyCR+MnBD+c7K7KJPgdeZwgPh1IN4ggeg 6LQpZol5szqPMzH0sVR+OhLIywgfZPI= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1686304957; a=rsa-sha256; cv=none; b=r1s3U3fEdcAN5z8bLRwV+HWzngdA3DYHVkeM4AyxEFsOmMMJkubDbr3eTEFV1GhsMrhnXN apRpkik1FycFy8AwY1UBQ6tIoax8MPAaRneTootfu+Vl4VwvrYOKk4lyLmOe6l7EqejZN4 JDt7QXQ4Gqsz/xSLblXqZD3LEqC3lIo= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=E6aIyfPg; spf=pass (imf06.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686304957; 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=SombcmEIcaRaYVTgKnrWY9WG1lMYc9bVEGm8HvALgWY=; b=E6aIyfPgArBC1PT7Fus5hxYT5Hv5gxMt6DgD++UtxBB8fPKFgOOsjHrjISftIvomeP8WDt EwY4+RREgT2D/QBia3dfNjR4XPG0+yk7e6W7O/kXd4nY4HA2j223tAOzelFGZe1wr6Eg8n jb/KbfUZzzcYY4JZTqDwLq+eB/yX9tA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-486-qreM6B3JMVajOcjyMrQ3tQ-1; Fri, 09 Jun 2023 06:02:25 -0400 X-MC-Unique: qreM6B3JMVajOcjyMrQ3tQ-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 383D3803791; Fri, 9 Jun 2023 10:02:25 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.51]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5B3271121314; Fri, 9 Jun 2023 10:02:23 +0000 (UTC) From: David Howells To: netdev@vger.kernel.org Cc: David Howells , Jakub Kicinski , "David S. Miller" , Eric Dumazet , 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/6] splice, net: Some miscellaneous MSG_SPLICE_PAGES changes Date: Fri, 9 Jun 2023 11:02:15 +0100 Message-ID: <20230609100221.2620633-1-dhowells@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Rspamd-Queue-Id: D93BC18000B X-Rspam-User: X-Stat-Signature: bsmgzcapcdsymzxzgrfm7ckk5k3urcdj X-Rspamd-Server: rspam03 X-HE-Tag: 1686304957-844670 X-HE-Meta: U2FsdGVkX1/lGokyNqsf1TfxkH+ienCJzJBeEIH6dafdYQDCSDpO+EupPOa+jZ6sexaQuU8xKUVUtf6odemBsvIImf0gAEt0FUy0ftb/xI5iEfNMl171mPFzwgmymRkarmHl9j9keU6yabEvWo36Bl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s5AybNJ8JjXA/5LGgrv1JNVbE1hHnS8iR70pwDqIoDlE41jF1Hd+T4pIr0N2osWOhi7cCxckj0bVVsitkk= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Now that the splice_to_socket() has been rewritten so that nothing now uses the ->sendpage() file op[1], some further changes can be made, so here are some miscellaneous changes that can now be done. (1) Remove the ->sendpage() file op. (2) Remove hash_sendpage*() from AF_ALG. (3) Make sunrpc send multiple pages in single sendmsg() call rather than calling sendpage() in TCP (or maybe TLS). (4) Make tcp_bpf_sendpage() a wrapper around tcp_bpf_sendmsg(). (5) Make AF_KCM use sendmsg() when calling down to TCP and then make it send entire fragment lists in single sendmsg calls. I've pushed the patches here also: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=sendpage-3-misc David Link: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=fd5f4d7da29218485153fd8b4c08da7fc130c79f [1] David Howells (6): Remove file->f_op->sendpage algif: Remove hash_sendpage*() sunrpc: Use sendmsg(MSG_SPLICE_PAGES) rather then sendpage tcp_bpf: Make tcp_bpf_sendpage() go through tcp_bpf_sendmsg(MSG_SPLICE_PAGES) kcm: Use sendmsg(MSG_SPLICE_PAGES) rather then sendpage kcm: Send multiple frags in one sendmsg() crypto/algif_hash.c | 66 -------------------- include/linux/fs.h | 1 - include/linux/sunrpc/svc.h | 11 ++-- include/net/kcm.h | 2 +- net/ipv4/tcp_bpf.c | 49 +++------------ net/kcm/kcmsock.c | 120 ++++++++++++++++--------------------- net/sunrpc/svcsock.c | 38 ++++-------- 7 files changed, 77 insertions(+), 210 deletions(-)