Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1462149lqp; Fri, 22 Mar 2024 16:20:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW5E+3yh6RS2oPMlFpvFLFrSlWlzoXgM0jw2juHnAbdoAHRdPcnZhvPxNDzWOxj/ChgkIf4f0swH04d+/QS2RnLlgFG9c7E1FDY+pquQg== X-Google-Smtp-Source: AGHT+IFkpICxoY+S2NMObQ0FIlTh89B4hK/Yk4GsabEvFWS38weUr8vbuhdalLuNt1Hxvsyzo4HO X-Received: by 2002:a17:906:2894:b0:a46:a646:244b with SMTP id o20-20020a170906289400b00a46a646244bmr303314ejd.34.1711149608707; Fri, 22 Mar 2024 16:20:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711149608; cv=pass; d=google.com; s=arc-20160816; b=BFbG56ETq7B+ndG52cNS8r5+8EsIT8XFYAtcDlb0nwR+4d4ah/jIllP1h5cYUBYeru YsRt6ra937fve+rsXglxFw//Bkfy0z3KZtMF6Vk2DJcYOZm1t96H3UcoXT6xoByycX9E sBDuqRBxmUk3j/cU+sCcDIBJRC128tBYmY9XLRUAjsmlsBIsmnp/LAWu4kZKeg73D0XD lt9VOC3Lc9nKe/74ASnMzGCg9KAgOz2bLt/iXYLxCNGkx/1zbNZj/9z8s+6exwSpAlpM oPqHMtj5pQ9Y3xujUxQ+cyb/aXIAgHqVbFQ7AEkX8C/Emd/vCiSN6jXUPjj40vSFdbbV 1kuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=KCB68mewJGuodo3upGIxJ8ALRqYiVtu3XFzFg+ipbVs=; fh=NbYQhGV2Nx88e2TLpSOFJwaIK7TiMWBCoriRYyJxEWk=; b=fUTfIjOEsIURt6mRPRpsjjQGCHAAgSvKtQTMtVibns0FGQRLMu7LYqA+qOHGsvLUBD ggWHDPd3Y9JiupY+lGtYjtlWe0Q/UymzZa0PUEhC0oiFD8e7ljn57NobGqMOvhDvmqJG 0Ebu7N4GbvBf5Wjd0ueQFVZDDCneCjGZ9L4UaJWDy9HiRmqz67XKunmSLMsFbxRVksPX QefkDCtrqw/EEzqtR5Sx7G9Sbd2wiEldSPNsDREEprMo7cgVzAWcxFXetWajbPnYJFsF apPPORcgIgMzGNhfNgk4PXA9D0GnpC6CSjVO2Pq5t9tkxkLulFjghrwuOh81/MNxlFHS T6+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ka5PHCyY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112092-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112092-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q1-20020a1709063d4100b00a46960dc33dsi247246ejf.560.2024.03.22.16.20.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 16:20:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112092-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ka5PHCyY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112092-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112092-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 432F41F23D7F for ; Fri, 22 Mar 2024 23:20:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F4FD82C8E; Fri, 22 Mar 2024 23:19:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ka5PHCyY" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6225A7EF05; Fri, 22 Mar 2024 23:19:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711149588; cv=none; b=a2h41iclxISNtDykq63G75cGAjlPziiNcrggb6+v2qlIEi29BkIMEoJwODhxjqvxXZw037Tk8RPJxJPZAX1VQjvW3QCAI4MEzE86qgMfQ1ofgWRHAZduLJOyE4umIFLiaiEsZnoWOsxax9Rw/3Q2GJgFLo2zcwM8YsoAzbxicSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711149588; c=relaxed/simple; bh=msieq1rlX+OhvWYoM0YV5KS97Dsg2PJYaBtuHVmZvcg=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=O7Z0zjKFbLW2twVBovyLEITwGs2kEFiBvyAVEAKpsdXtE/I5dwwEkED+9gN5c8MvbeekxI9f4GDl8iy4RSUVHlny9rKMbj3kPdBIDa5rW7SR6qTyZQZ5UGuLmxK53ukuIli31AFhVyIug2TA6Jy/HxH2fbsqXU67llLohuOZwlM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ka5PHCyY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8F27C433C7; Fri, 22 Mar 2024 23:19:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711149587; bh=msieq1rlX+OhvWYoM0YV5KS97Dsg2PJYaBtuHVmZvcg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ka5PHCyYmoZX9PsvxUAGJqdDBExkTkresHF1kC0nKcGUkpNWTtXfCM9eM3lON00E/ sdTUglbJIwNhSuRIDCc+Shrxp7Q7F8OSC60m4cCVgaPGJWVHsM13+iCe/YoHIFFgiu 5HybDp8YS06v2Xztbb1h0oBMyxoqE2gUndhvBCAbY26U2oBUOD1EZxE7LZ38fBL/QI 5JZ0BUBtxg5FufRT6Zts8zD6NNC0atF7skifKgwBOdLblk5mTaX0LRELnaXdtdEHfX 1o+GQ6VMkk+C/AzTNXltKD4XdDE8tCJ68h7rFM9MN2K/6Z5mQBQ5/GwiPbhToKc2vD QsSjoQ81Meb1g== Date: Fri, 22 Mar 2024 16:19:44 -0700 From: Jakub Kicinski 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 , 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 =?UTF-8?B?S8O2bmln?= , 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: <20240322161944.4eba02b6@kernel.org> In-Reply-To: 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=US-ASCII Content-Transfer-Encoding: 7bit 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.