Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2572720lqp; Mon, 25 Mar 2024 03:06:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUkH8DvQku70FUqLEF+8gwIFHQiasmP39CA0eC7Gijdlssx8Q67+Rlo6KwQgdXoR0pV9uTWhJhKGL4g9tyLmj+MS9iFKyPLh4uzl8T/PA== X-Google-Smtp-Source: AGHT+IFyxn+TJj7WBnu+bUvSye0DSC6KOJ++PwNapHzOcnnQA74rn08yb5hJQ7pXj/V31LQFl0Km X-Received: by 2002:a05:622a:304:b0:431:5e0e:3d62 with SMTP id q4-20020a05622a030400b004315e0e3d62mr1238084qtw.39.1711361213332; Mon, 25 Mar 2024 03:06:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711361213; cv=pass; d=google.com; s=arc-20160816; b=JCh8P63sCjwZj1z2YQ2/nzNAVaPNuhmVQD4xIwWWOpiMacMosXer7pMnQXgvCoTIiv 0hhV5raEARGJxzDjebFTXeWK54CXw1UztpdQ7lCP4MIaVgnp2iuY5pOdYD6sxX+YdprQ lFS8mF0KC4aM8esW4jvBvA0nOlgZop7YgzAcLA2A/q2ZY55B1nOVbwrqkcZiVaiaquzH O02VA3kdHISgpnYRSVRtgbxuDZD3zUih/Li6Y3aP99KuMbresoXPtAN+4iz4hq6k9Pir uviepPW6VPzBPGYh3sznFnQluPTLqkpxi5KCb+onN/2I2AFUXQOwafOAycDgFOQQYTiw JWjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ghVT0JSAZhWZjIMzPkaSyKQMLg9eo2J9vvVmkWYzHY0=; fh=c5FPkeHop2a27lYrOT5/4zitr/nT56oQoAcp26drSLs=; b=mDP7cBQ0JLrbZeGmM86dBoP5NLaebAqIA7sFnQuYDrIv7v1kxRe27yKv1RgDrGGFNT UmRomdX2lIe5epWkfr0IR2UOFVV4FJYYvqF1veuWyhUtcIHSu4RiyHDIe0fy7fIpg3mn 1qiwCXkEZO10MyuMIY4Pb0+99rQw80N2PcRsO1NKkK6O3nH0iKKsH8jIqeW3ocAfSgPR h7vwMK4hNNdKGjp95zwv+hB6j77k5Ik4khJ2SPLKpQUq9/h5sAugN/t2SiaJcA/BXGyQ 5+uVTQOp59DtgBqZ4CQt0wb5Pjt4zlr1UmhiMcu1juPzisLMnbB4LgFZGrgfQaZI0vLT vL4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=iF7DWwIh; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-114737-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114737-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u22-20020a05622a199600b0043162088668si333578qtc.431.2024.03.25.03.06.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 03:06:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-114737-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=iF7DWwIh; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-114737-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114737-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6F0DA1C2CA2C for ; Mon, 25 Mar 2024 06:29:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5ACD11B6765; Mon, 25 Mar 2024 00:48:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="iF7DWwIh" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2BD8D2733F2; Sun, 24 Mar 2024 23:35:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323325; cv=none; b=V4i42sNwmFtejMoS6ppzpbJFpUqNNR6iU+iyog+EbCKmThdCMoybhazaS3dU8Nr23OUyz6qkz/AbangdluQmAr5yMEhRq+oiBv3/XnzjvNWbsoxNQYuauHUb3h0jrNQFSx9tNGR4vtByFbXUc010kkGyPumHyZJ7s35GkfyQCds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323325; c=relaxed/simple; bh=w3DndtsjG6zas1wfMjz8RZMmPG7WJq8zOlcY33vgO1k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rTGa00yHWOCy0w9IMnpQoUD3KDYqfX8zJuKF7G5p/jTW/laVf4vZcyQtujh32imp6F9s1ERucJSJIB8fOD4a3UhusvJjgPcHVOCP5uBemqwVo2T0NKQeDWirKAAGtt3IusoP0zZPFh5YbyqpItiOrGTj67v2cHiF9CoF13e3tTU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=iF7DWwIh; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=ghVT0JSAZhWZjIMzPkaSyKQMLg9eo2J9vvVmkWYzHY0=; b=iF7DWwIhKNw1JXqENX4aC5VQuT Q+y8J0fuVGe5AwYlRzm3NLZujnu/cR27zhXmnagtXn8d3D3rIzlQWL/6pWHpEyOsjyQKu9U2fsYdZ 0j1Mu5FqrQQdlfn/nychyLmO+m2AXW7q8ktbLO3WvzRguveQN+9kvatO/5ZHsKHKGvl81OGqJ/bIy sZGsGxnt09H55+3KNacdrD6wCQHPICcVluG/tqUD+roC24jyBL7Ek0i83zLxKbvBPSHsaoG9qMe/T QWvbXHUSflmRJN4m5L8+F8u1KOq4Yn6T495UloKN1oQ8QbpHceqV4E+DC4cZ93dBQ+vH4TaLdVtcg S6F8ELJQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1roXMv-0000000Dtyv-0e3z; Sun, 24 Mar 2024 23:35:13 +0000 Date: Sun, 24 Mar 2024 16:35:13 -0700 From: Christoph Hellwig To: Mina Almasry Cc: Christoph Hellwig , David Wei , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-alpha@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, sparclinux@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-arch@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Richard Henderson , Ivan Kokshaysky , Matt Turner , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Andreas Larsson , Jesper Dangaard Brouer , Ilias Apalodimas , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Arnd Bergmann , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , David Ahern , Willem de Bruijn , Shuah Khan , Sumit Semwal , Christian =?iso-8859-1?Q?K=F6nig?= , Pavel Begunkov , Jason Gunthorpe , Yunsheng Lin , Shailend Chand , Harshitha Ramamurthy , Jeroen de Borst , Praveen Kaligineedi Subject: Re: [RFC PATCH net-next v6 02/15] net: page_pool: create hooks for custom page providers Message-ID: References: <20240305020153.2787423-1-almasrymina@google.com> <20240305020153.2787423-3-almasrymina@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Fri, Mar 22, 2024 at 10:40:26AM -0700, Mina Almasry wrote: > Hi Christoph, > > Sorry for the late reply, I've been out for a few days. > > On Mon, Mar 18, 2024 at 4:22 PM Christoph Hellwig wrote: > > > > On Sun, Mar 17, 2024 at 07:49:43PM -0700, David Wei wrote: > > > I'm working on a similar proposal for zero copy Rx but to host memory > > > and depend on this memory provider API. > > > > How do you need a different provider for that vs just udmabuf? > > > > This was discussed on the io_uring ZC RFC in one of the earliest RFCs. > Here is a link to Pavel's response: > > https://patchwork.kernel.org/project/netdevbpf/patch/20231106024413.2801438-6-almasrymina@google.com/#25589471 Undesirable is not a good argument. We need one proper API that different subsystems share for this use case (this is the same Feedback I gave Keith for the similar block proposal btw, not picking on the net folks here). If dmabuf/udmabuf doesn't work for that we need to enhance or replace it, but not come up with little subsystem specific side channels.