Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2641302lqp; Mon, 25 Mar 2024 05:26:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU0es3mB6BaL/65GNNLM5S29W7VMRfdVRS4SJNKxH5iWJFUHsnh8xgaFAMd8KrB64YmytprlzVCL7oDDV2R/75EbrwhkVQykbvf3yZ0BQ== X-Google-Smtp-Source: AGHT+IEVFSLrAb3LdD+bDaVVY2SPrJcxvBR9M0ASppG7RHhoiKVQ/SApfyXumN379jXp1vgS7hMU X-Received: by 2002:a05:6359:45a7:b0:17f:56be:8c93 with SMTP id no39-20020a05635945a700b0017f56be8c93mr8035333rwb.6.1711369594643; Mon, 25 Mar 2024 05:26:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711369594; cv=pass; d=google.com; s=arc-20160816; b=YE8WkYCv2rBGj3L9wEOtYNxvKBINWatIdL8Ks5XXRzkptMJjBmJ2yEylu8//4+YmAR ZDZLrlY3ZjvktbKzGGHYv1cg0IWZQhVIQmjrKMYfzYNIEznTbDOKfL2Jy6ZRpYrXwK3u pfzPzSNsLik3ci/dn02sgDRwUJ7/EqqeXNJNS6tN2St7aQRasZkJmvxdE8pmho9F4ZkK 7w5oBOOC7RwJeQzmTaDx5UIJKMjVlLqZ+cWcmci5I6/tLIvcj/9NgrhP8VKOF6uAoldR nywXg06cOLZcvL9HCHEk9mgqVYgfmwhIJrEZgTiKH5SS7Y/8hyd5Bvc509MsM90RtRo/ Q0Qg== 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=HyM6VBVMJtd9gQh+FybJe9PxTYv3KhBiS6vxr8ODZ/s=; fh=a0JqscPEZV7Au1JbxiGigS353OQ3QVdwUQJQi8xCkls=; b=Oj11DlN94LcrHjC1LB6QB2QcR3ijFcH6D78ExpiNt+K7fDhsyGBcZYfbs8wbMRBQbD Hh5V3luL0WXYLWPY6JtBLVxQGsPgZxn7r7VTaygT+60T88Em/qtS/gtPOwnmTnlwLIFI fEnT2zKIynIIDxjG5c0jWCRyLmf2N+8EAdlxqKlK5tEQzOURXEBy/W5V8hHLeDDzmn5Y NIdgAUuMO2RhNWBjnvnQd52y3PeQgU6hTRWZyaSMXkCGAj7e/4XKIWfnc1ebcjJMICtz 3oTa2/i3bIFgHOjfHlAyY6+j2NUMWCMk4uM5lzo3aMQ0dhmU6lUa7eO6/p0sA8hdyZv5 b1PA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=yJGH2jMG; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-114739-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114739-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c17-20020a634e11000000b005dc8719cdfasi7331744pgb.298.2024.03.25.05.26.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 05:26:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-114739-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=yJGH2jMG; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-114739-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114739-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id D73B1B27DA8 for ; Mon, 25 Mar 2024 06:29:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD6B6251160; Mon, 25 Mar 2024 00:48:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="yJGH2jMG" 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 9B3F6219546; Sun, 24 Mar 2024 23:35:50 +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=1711323353; cv=none; b=SwSwEl3DNZ8vBITyxorZUWnh1N7A1BxAP+Djaw75lB94WrhiPqDrIYCG6WfDMa+CEX919kfhwf9KlLfCYEe4/vLohBlnuwOQ96BsZnxZYokgBMg5eca+9fNDakuuF4rAI5AS63YOd+xFZigYHaVJBRMKOgctWi7RPzDRvCY8uaM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323353; c=relaxed/simple; bh=ctMPVuDn3x7Xp7zzxNQY9JLBqhbi5/Nt3kTaMA7EuNI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=M2tLrrQxYnKi18Qj1H/KDroxWCXGUM/rY/75itUtYQsnQI0PQnK61Qya1ihOx3XEa5vn30jPqFVh1SYX2utL40AHu0iPGqZL41vRVgACdcS+DTYDAmCfMPdtSj/f8Ax3dsERad9Xl788PoPQ4vRhSvINnfsnvfq8RDk7UzsfWYo= 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=yJGH2jMG; 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-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=HyM6VBVMJtd9gQh+FybJe9PxTYv3KhBiS6vxr8ODZ/s=; b=yJGH2jMG6oXIerQS8er4fiHOXY alYQqiHpU0+UltG/yb+JD5ouEAUPz1wM6IdxphCU9oKyzs8SPFDkEmcnnWb8HLbWiqqwZyjnIfGPa jsYw8HNIhHJaHQaVuCKt5mv3rcspRie21bzf2q4Rhqe1fbf04uEDrQo21EOCjJFmws8KVF/g9jEKu cvPiwOLyQ8/M4pA4ebpVdmXox2hCns6eXUVGQBnDUc0XI7ZxeaVfChxOKFd8MMA5OTrH3e60mYS46 vkQNIoASqdpdgrXbk6MYvJG8E6Lw1EErc9ggza3c3+Lb9SLgDG07eXLdGT7Aw9rhOLX8Ho+3+j4Cd gmUCCXHg==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1roXNU-0000000DuBN-3XLF; Sun, 24 Mar 2024 23:35:48 +0000 Date: Sun, 24 Mar 2024 16:35:48 -0700 From: Christoph Hellwig To: Jakub Kicinski Cc: Mina Almasry , 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 , 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> <20240322161944.4eba02b6@kernel.org> 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: <20240322161944.4eba02b6@kernel.org> 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 04:19:44PM -0700, Jakub Kicinski wrote: > On Fri, 22 Mar 2024 10:40:26 -0700 Mina Almasry wrote: > > Other designs for this hugepage use case are possible, I'm just > > describing Jakub's idea for it as a potential use-case for these > > hooks. > > I made it ops because I had 4 different implementations with different > recycling algorithms. I think it's a fairly reasonable piece of code. Assuming we need 4 different implementation. And I strongly question that.