From patchwork Wed May 31 11:00:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 13261943 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 37BDAC77B73 for ; Wed, 31 May 2023 11:00:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5976F6B0072; Wed, 31 May 2023 07:00:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 546F76B0074; Wed, 31 May 2023 07:00:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 45CDF8E0001; Wed, 31 May 2023 07:00:26 -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 34DFA6B0072 for ; Wed, 31 May 2023 07:00:26 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id ECAF5C0344 for ; Wed, 31 May 2023 11:00:25 +0000 (UTC) X-FDA: 80850256410.25.4F44C0E Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf22.hostedemail.com (Postfix) with ESMTP id 0CE0CC000A for ; Wed, 31 May 2023 11:00:22 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=BFcIsOfG; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf22.hostedemail.com: domain of dhowells@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1685530823; 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=ritQCRwG6JPNw2IlJoit4EL/5tJVr9K/iaMGx8C/GDs=; b=uBmZb9QVn85Ntb8fs/ESPr7ij3jpLd4o3euklRE/0omu1DM3S/yNYX6kwcr8/Izk9HJazd FWG/lkMB2L4AKXzudp7+YIiO2fX15DYSdMmdHJTVPz4+cYOEB6wggV2rKtZV1Nn9W5xNuR REYMdngyYBy32u22rzlEWVTy4lNxfeY= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=BFcIsOfG; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf22.hostedemail.com: domain of dhowells@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1685530823; a=rsa-sha256; cv=none; b=vVXWBgluhehSEfI+ObVo0fwMk+02n5aTT9nXhjtr0TiJnUnhQ6FfqTLfbQBxuRBA0Ssbio nBtoduDFxeZD+VkbCjA3to8nwJCNl03nuO3MstgTgNXfZZ1rKjSlgWaL94h0OeDiiWq7UT v+h7QrwPOufKpHmztjdgds/1ra5vqnk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685530822; 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=ritQCRwG6JPNw2IlJoit4EL/5tJVr9K/iaMGx8C/GDs=; b=BFcIsOfGUvuZ6KM196qAFsVAGhSgu01lDcZzNtfEhRBsSZICistbks1QjwBRtIVhcqQgSp krNCjfmqbHSU75vodxIheLwYUKSrWguCxX8WX1CmdQ7e/mumkQCTWOc3YQtTaRbPEjaSYF fLHGu+WkGin+LR0xxeo3R1yWGgZpxcg= 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-413-8IoEmobkOseDjtIKySDr4Q-1; Wed, 31 May 2023 07:00:19 -0400 X-MC-Unique: 8IoEmobkOseDjtIKySDr4Q-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 25D6585A5BA; Wed, 31 May 2023 11:00:18 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.182]) by smtp.corp.redhat.com (Postfix) with ESMTP id CF32A140E963; Wed, 31 May 2023 11:00:14 +0000 (UTC) From: David Howells To: netdev@vger.kernel.org Cc: David Howells , Ayush Sawal , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Willem de Bruijn , David Ahern , Matthew Wilcox , Jens Axboe , Simon Horman , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v2 0/2] splice, net: Handle MSG_SPLICE_PAGES in Chelsio-TLS Date: Wed, 31 May 2023 12:00:06 +0100 Message-ID: <20230531110008.642903-1-dhowells@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Rspamd-Queue-Id: 0CE0CC000A X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: k3zew6csmaacex3pnjhuibwn34xa8jkj X-HE-Tag: 1685530822-949547 X-HE-Meta: U2FsdGVkX19ZmnYrHiztafrHKqouWWn0+pQP6qgJzplb1L+S5MtaI0/9j1PIrSlzGUvKpNVrfstsPTzX6IzSJe5/2hNJESDxHPTFQrhazg5dakNc6F3u/AZtyyqzpOzyW1y8flo8EJWsfpCyLwDX0BtExkSSnkY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W8HT3PHATNDeL9W4XONXcpOqwk7P/RTZNeXQ2LzFnWikjkUIuqHab0GLgcY1Ov8sp0rSANWv1MLBN/fSBMiGNO582lekJtO8Mq+ZURWmYfV3p9km/kcHwk 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: Here are patches to make Chelsio-TLS handle the MSG_SPLICE_PAGES internal sendmsg flag. MSG_SPLICE_PAGES is an internal hint that tells the protocol that it should splice the pages supplied if it can. Its sendpage implementation is then turned into a wrapper around that. I've pushed the patches here also: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=sendpage-2-chelsio David ver #2) - Wrap at 80 chars. Link: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=51c78a4d532efe9543a4df019ff405f05c6157f6 # part 1 Link: https://lore.kernel.org/r/20230524144923.3623536-1-dhowells@redhat.com/ # v1 David Howells (2): chelsio: Support MSG_SPLICE_PAGES chelsio: Convert chtls_sendpage() to use MSG_SPLICE_PAGES .../chelsio/inline_crypto/chtls/chtls_io.c | 121 +++--------------- 1 file changed, 18 insertions(+), 103 deletions(-)