Received: by 2002:a05:7208:20d2:b0:82:bbfa:f723 with SMTP id z18csp36397rbz; Tue, 7 May 2024 09:50:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWtMKK6CSzIau/wWCkZ+iHG+A3aRBzAihQgCGFQjjCzxug0b6GRuYYb/kdlyM40TEPMZn+CobYp9XNUhYkuExk/Uk36M34iKl/2wvBm/g== X-Google-Smtp-Source: AGHT+IG5wnO0veZDeBd+C0+OQJqIVRi5UBW81ntWKoJqxIKZ5VWHQyltfHXCHz9JbjL0npp7vFid X-Received: by 2002:a17:906:2511:b0:a59:cbff:a04 with SMTP id a640c23a62f3a-a59fb9230c0mr3433266b.7.1715100642670; Tue, 07 May 2024 09:50:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715100642; cv=pass; d=google.com; s=arc-20160816; b=Ok4A7hzS50+Z8fgMK292K+fm2D9uINhEjYAGNIMEiKwoH2Fs1MrLLtZ+b8lLK022Iq NLfUt9PRnyTo1AbvU18PjOZZ27lQ98FkAXcBlLubGeRX+kxi0qbrImn0ooCJAfHPG50B XyXNPCHIXNbyeDysEpI6pok3Lba01ZDLO5CE5j6sxliDWlq4NFNBVpya8jwleMVBOVoG o+USKtuHtUYwyzXL+0Tln7QqHk+65aCIrQ2fuu7zDitZforRtoTlBwBUaOxJmqrT3YGf OCE+K5lc94kCsG/ufRXT1NUchBcnd0wePCjxnQl7Zx3cbUD3dJwy+D16FO6p+zCQs34C aW+w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gOXMXsqBJM5en+QCPBiSpytwuPa/Zj3rDSRIG7JgC/c=; fh=z3rGoJqxg+HoAScG2xrKvRn3DvXVHQZK2X/qBMXo9to=; b=EfYNR/tbQLUrEuKBe6zuIwL47CQU/g5lmO+ZNLYBzVk8aZf56Q0/I6+t/e7WoxN6Rg SqQB/oP4U3FKVtEqgvz3+qAoCs5z5npsNmJ3J5DVo6RCenzKsJrRxSwpU/6jd1qoCB91 G/eUfEnvJPhcDZULfPPOF7bLlg0j4szkLUXjaTdkqaV/01KTmDxQgACay6v5FWsNxLZd xLtGkz6vctAbymwe9e1RJCYnNkW4St5OSevPvMKcIxcRAIJcnqL7DrDASZJ/pWAtXAd7 sHb/teGw8LoyL4Pzi8sN1l7dLJkFbFiqtaBjS7aeMo+ZKev2G889FN5SKISd6XtH8ZWj epUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="U//wWEY2"; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-171870-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171870-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t3-20020a170906a10300b00a5888728369si5937501ejy.303.2024.05.07.09.50.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:50:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171870-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="U//wWEY2"; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-171870-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171870-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 46F6D1F2111F for ; Tue, 7 May 2024 16:50:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0B2314D2A5; Tue, 7 May 2024 16:48:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="U//wWEY2" Received: from mail-qv1-f43.google.com (mail-qv1-f43.google.com [209.85.219.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B50C6524B7 for ; Tue, 7 May 2024 16:48:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715100522; cv=none; b=QEhUl4ImH35wNSWPgdQomkXJ+Z3QLMfeii699Pxb6lam7dl7n8PSSA69/Eovl8PHt4uqPxHJULQg2KKXl/YPjOGb8XrWned/P2mlJZ47oEr2ta4P1XdtqUqPDKdAq2XJq9UbRUx7eyisva4M9fokzzT0fYHeOdULStaRXbcgXes= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715100522; c=relaxed/simple; bh=gOXMXsqBJM5en+QCPBiSpytwuPa/Zj3rDSRIG7JgC/c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=q8iVwSSyUasIO/rH2wRw/M3hmW4g1HdaBTTeCDD52xGw+nCj1W94793GDx4Yvi60z3TTxlDxQpErVxUzngvafVZ4RmQTs+22vlskJ8HjXquI+ihw/IFmw7r18sOzIwQ5R8j4FxdCborhwLfTFfl765vD/KJuGNrNy+MkIXQdZh8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=U//wWEY2; arc=none smtp.client-ip=209.85.219.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Received: by mail-qv1-f43.google.com with SMTP id 6a1803df08f44-69b44071a07so35332696d6.3 for ; Tue, 07 May 2024 09:48:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1715100520; x=1715705320; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=gOXMXsqBJM5en+QCPBiSpytwuPa/Zj3rDSRIG7JgC/c=; b=U//wWEY2+NT4PYydYpdHW/1iwqe5dbQz4R6nBIQZRbEIM+DkGz9Z9qnp+ke8N3smow wUHVP7fIW78wnBDvtUydTcD56PFybkc7kwMR2r5I9G5/61MxT86usi9atzDWURelqu7i fhYSbMf7Gkywk9i3lHKMnwucAGyrV8jbEpgMcwzZRuTnWULOI70rOGoIkOY9lO0Eyr7n YCUsOMQbG+Ip+GcawOmr05jLs2DB7w3aHHj+j6VbHim8NVR3O0vwIHEV4TWH/GUBeztL 4OAQYaY7vsWo81jZq7hzFHdYC2pLs2TDEuxY6754YWibuza/B/ErkCrJgCoWiNzgmay/ rqzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715100520; x=1715705320; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gOXMXsqBJM5en+QCPBiSpytwuPa/Zj3rDSRIG7JgC/c=; b=pov4yPIi8i3FdXAlYchBdw/Ym5dSmXt1q9edRbPHVZ+HR2+YgkDrpeB0Tha3t7FUiQ BZZatw4mhWs2ZUjXtvCFfnRi3Bt7dMevG+44zarqKM1voxbRmnfi0P2+vxthhs6kQ7Y9 00SUbLfOcKEYK7SpYIjieLjtRtZ/kgvjMINCzOGyI5VTbZmBrfq3YwyPEd0gPhQBIHSV E/vKo18mYxCNfX4Pf+6ckT/deuPLMUi0yyQQRmXQ7RES4tk4+CI80FWX+W/rn0wYWxAW Xbb7zhOhoOQRJ+cib1vL8vmGqP8L9+nld0IY/RKBT1ePZZ7DMtD5iyDF3GNX1C3t4iGl 8Tzw== X-Forwarded-Encrypted: i=1; AJvYcCVn4VY6gBeVWTauZH53iAH3qDxrNE9vbp7TbRcJbLsH8qt5pdx/Il7OzgmI42SqPgvB4cARJgikHsqnv45f1RTKroxsS8AdptG5/IDK X-Gm-Message-State: AOJu0Yzkl+Z9bmdu2bBtHF5FzHzSI2gGDxE+DDcjhcSKQlvIpq3kUS9V M3ECahWbTd9XONM1uVkXQJqCYqku/+1E3D2dagat+qo6gx7QNzUZieUCplX2HMo= X-Received: by 2002:a05:6214:d6f:b0:6a0:d701:3e2f with SMTP id 6a1803df08f44-6a1514e62bdmr3983216d6.56.1715100519594; Tue, 07 May 2024 09:48:39 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-80-239.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.80.239]) by smtp.gmail.com with ESMTPSA id m17-20020ad44a11000000b006a0d7154d13sm4802415qvz.78.2024.05.07.09.48.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 09:48:38 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1s4Nza-0001bb-8V; Tue, 07 May 2024 13:48:38 -0300 Date: Tue, 7 May 2024 13:48:38 -0300 From: Jason Gunthorpe To: Mina Almasry Cc: Christoph Hellwig , Pavel Begunkov , 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 , Steffen Klassert , Herbert Xu , David Ahern , Willem de Bruijn , Shuah Khan , Sumit Semwal , Christian =?utf-8?B?S8O2bmln?= , Amritha Nambiar , Maciej Fijalkowski , Alexander Mikhalitsyn , Kaiyuan Zhang , Christian Brauner , Simon Horman , David Howells , Florian Westphal , Yunsheng Lin , Kuniyuki Iwashima , Jens Axboe , Arseniy Krasnov , Aleksander Lobakin , Michael Lass , Jiri Pirko , Sebastian Andrzej Siewior , Lorenzo Bianconi , Richard Gobert , Sridhar Samudrala , Xuan Zhuo , Johannes Berg , Abel Wu , Breno Leitao , David Wei , Shailend Chand , Harshitha Ramamurthy , Shakeel Butt , Jeroen de Borst , Praveen Kaligineedi Subject: Re: [RFC PATCH net-next v8 02/14] net: page_pool: create hooks for custom page providers Message-ID: <20240507164838.GG4718@ziepe.ca> References: <20240403002053.2376017-1-almasrymina@google.com> <20240403002053.2376017-3-almasrymina@google.com> <20b1c2d9-0b37-414c-b348-89684c0c0998@gmail.com> <20240507161857.GA4718@ziepe.ca> 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=us-ascii Content-Disposition: inline In-Reply-To: On Tue, May 07, 2024 at 09:42:05AM -0700, Mina Almasry wrote: > 1. Align with devmem TCP to use udmabuf for your io_uring memory. I > think in the past you said it's a uapi you don't link but in the face > of this pushback you may want to reconsider. dmabuf does not force a uapi, you can acquire your pages however you want and wrap them up in a dmabuf. No uapi at all. The point is that dmabuf already provides ops that do basically what is needed here. We don't need ops calling ops just because dmabuf's ops are not understsood or not perfect. Fixup dmabuf. If io_uring wants to take its existing memory pre-registration it can wrap that in a dmbauf, and somehow pass it to the netstack. Userspace doesn't need to know a dmabuf is being used in the background. Jason