Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) (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 A49B5C148 for ; Tue, 7 May 2024 16:48:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715100522; cv=none; b=XRB/2bkdOgeG61tgsMCwMQfSag1pQA/5n7ieawhYX82ZLS5q/ZAy63btiPH7/JZ3A29wSOqzNp9OHpy9EfxxdenUbL/qoTRrw70+c4q7Db0a+WXqWKBu4AtqWbj4m7EswaCpATf/K7UVzelz4K0lAQfRHtgyWJE4HVL5IxQs2Xg= 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=e3y3Zlvm; arc=none smtp.client-ip=209.85.219.49 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="e3y3Zlvm" Received: by mail-qv1-f49.google.com with SMTP id 6a1803df08f44-69b44071a07so35332596d6.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=1715100519; x=1715705319; 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=e3y3ZlvmpvWAJj7MTUW+26f0kgYSEswWY2ZN3nivNYBmlA4n3ch9d45Gc3Oyv+C+S9 BCaAkAGTtb76Jwu38vME2UXHr+ljXzQaRpFtKEhNQ2JBZFQzim7ihRWc6wqOnrhzHXxz mejoSuB+uND2x9uWknUYq6MIkoS5cC0HaLxqPuq01u8jDAu9sNVFW+ZONnJ+rLeSIvWs XFA2l9ig93va4x0k/Uk/mYGg1Y/O4nts8ZeX6SJCzE5psD8h9bXsMgiXHWBN6DErt3vr FxVGNMhorRM+5zrjm8bKwGgcjp/p0ByBxITLHYf5wBnS7TKbGmjEnDGe5BNjZXQwhFRC mEpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715100519; x=1715705319; 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=XYiO8cgWAtgwq8WZGGZmLUKczmMoRwPkuX/ilgR0ZNNIp96XHn3cnpegW3hZuHNIcG F5xgfUsn5bOWhzVXNqxHA3mKnKadKmaQHTx0LcJeE9Y5+c9gJoWuyOf9WobTsrnLIdF7 eKUqgGyCRZLZwUOIqlWpt4heI3a4hF4zDLatKxcneHnn7qSWjqxpR7t9aVEarBmmaYQN oq8P4r+0juOi99+Zx/coFs7FUMiQr2Ywv8J4lsaObQKGQwPdqeEwa9LuN4ojOs2ejQzr tJeno78D2GZXw+p1k8s/vZmiTzBkNvDMOL4QRwxPLASK0hjCvs4Eg4IvtRwavMx1Byem Pjew== X-Forwarded-Encrypted: i=1; AJvYcCXYl6DVHkb86H6GFZfn4EDLHkHiXJ0lf4s+3XamVFtD2thEysJc44O5Icen1WSpvgdwyYZaYsI0k5lR1RjTnYmRye3G X-Gm-Message-State: AOJu0YwmBojASoaREggJRNLe+O2Vs+ffZALTtV71JGL8MzdQoOTfPbmG 8Ct0HcNHLPRaYeooQtUrxDeDTAeyjTZlIVLdBEpkIXOHfD//D72f64xJMM6XlJk= X-Google-Smtp-Source: AGHT+IFbsxT2Pt8ByXGyT7LtxaJucQY1rIIZhIGZ18mB5aP258L/BIC9x6k5KbmoTctVF3TG4pq55g== 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: bpf@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