Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1092238lqt; Fri, 7 Jun 2024 07:51:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4hWAPj2zw+a3YQjVgZXzNXAGy5wFJ1XlEYtblZ31LqI76JoZF7/gD58YSGdtGAVoLewqkv6WlCrwt+jYBIvSkeWS47RavdjuP1qG05A== X-Google-Smtp-Source: AGHT+IEKRgbR08NwzfEdCmOoCk+6cdSykUTKeXjTfUO1i1N/lHhyynK0IXYZ1tntXenn5jch39cN X-Received: by 2002:a17:903:1c2:b0:1f6:768c:31f1 with SMTP id d9443c01a7336-1f6d02dda91mr33683285ad.18.1717771887882; Fri, 07 Jun 2024 07:51:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717771887; cv=pass; d=google.com; s=arc-20160816; b=Yrt3fMENgrlxQdsKYJyOGTgLKvh4wkTj01NcVcT0HR/87mti7/xrCNZYAJyh2MZAne J4H5jKo7f2e/8tXebI8hOSibDDDGon9E7pS0hc8AW2wQd49AnSQAEiuLNhVUrplixqJe FfSXu15OKhFs+DfwqDoHMPbPUvnGt/ipJ3nDcQRYs0YMlepVUzsRrsbi4ufNesfrGQey XNkPcFQx/BM+H9G1bxTsEDPyK4zN44uLM7cD7yP1LNE2H7oZrDMl7/Vd437notggEdIs TM5NfuBPiriTdTQWLVGtUln+A35Q1C2KBfkJHn3RLJqFhR+2+l9nAYtGAkNlFtr737J9 WX2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=KPoMrsS5snh8BDGlOijeafq2go5qhS6jTOpT7vzHlQQ=; fh=5TQBtCgKAdsclmjwMUiP9/iyJFNAZA+yZ2zJM9UdRvs=; b=TGstX2nmtHLGAt4GlmMFi4/byxR7YbBGWezju5gj2KeRQAa8GamfItFxRmYwc4rsXy j3t/n7mhgu4TKolND4eyI7OPrf452GdEa3nfPAIFaX6qLbr0iBNjirW7RsivLVjPi+21 tAGru9PqTEb5jmcNJ56KxMJLw6R1kjc5cfmC1MircrdvVPBV0xwR5KP5LDmnjzimeijC Xga4U7V3u1jh9HABEgrvsLHoVLYg64j9YPyUa3ctWsU2wfnsNOzdkD7RFif/j05pUBuS 5+5Gj4wGuhRlcOQc7Vg1aD0hiPFD2zTlA3Z19DKIKHJVAHvGVaUQsJGKFqdQ1pLnUW/7 4q9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rb7DMqcA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206264-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd7d6800si19442655ad.216.2024.06.07.07.51.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 07:51:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Rb7DMqcA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-206264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206264-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id D20EBB29296 for ; Fri, 7 Jun 2024 14:28:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7BA8F199EB3; Fri, 7 Jun 2024 14:27:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Rb7DMqcA" 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 799D5197A99; Fri, 7 Jun 2024 14:27:35 +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=1717770455; cv=none; b=P+d8uN1rueupnANN+Tx2fOFLxfBIx18FXDQdejiCSV+m7Wswa23PMmCQpkA1g1TiOquNnJZrN/60BhPKjgpOdDdOduvYZlbpPHJtfKTaMITy0e9qvTRJByEUAH1VqLdsRNslYQ9VGyhm5w0tRZ+nZaFSbpJ42wPFw7lpiNrZsmw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717770455; c=relaxed/simple; bh=KPoMrsS5snh8BDGlOijeafq2go5qhS6jTOpT7vzHlQQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=g1idzG+TscsfE4qdOTkNqE4eLLOfNo6WaEqI886aoAQNPOAeiTJUTYxE17jIJo8z5I59xpo1cu8W+56xXO4XjnX0Rv8X7l8et/gODHQzMsSzfyVnHCghuosrrAx11VIlE3X4YXke930sWnTGR/pOXIGI/Fp734eWZOaxJnifiFM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Rb7DMqcA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50BBCC32786; Fri, 7 Jun 2024 14:27:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717770455; bh=KPoMrsS5snh8BDGlOijeafq2go5qhS6jTOpT7vzHlQQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Rb7DMqcArkZvyfBzLSVJUlQlV/Ck/+6ESPZxN5arnY7H9q7XJGMPPBAE6V2HkFmBt ncwTlfI/t3hucXH/VxlO/fez1rU2hLs6i/UEpdUTN54W2IQMZ7n1U4OQrWgA1LmJR0 zqDW98yT8BuLgAvCcObpxLiQFfHY2URX5ybVl931TqQhYmhE6iZq2PBE2DaWde/7Eq ovQkSS/Be7X8r3wJ/i72g+jHgwGd7hyJUkX9jN5/oboTDeg43lJjOz4IMLmY5nFrs6 IyllF283aguUwgY+ZXHesUmBojvGPxRsoSaw6Pxmz4XZKaEL7YdgXyxtgphJeI0HVU EnAm4F9g8Gk9Q== Message-ID: Date: Fri, 7 Jun 2024 08:27:29 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v10 02/14] net: page_pool: create hooks for custom page providers Content-Language: en-US To: Pavel Begunkov , Mina Almasry Cc: Christoph Hellwig , 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 , Donald Hunter , 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 , Willem de Bruijn , Shuah Khan , Sumit Semwal , =?UTF-8?Q?Christian_K=C3=B6nig?= , David Wei , Jason Gunthorpe , Yunsheng Lin , Shailend Chand , Harshitha Ramamurthy , Shakeel Butt , Jeroen de Borst , Praveen Kaligineedi References: <20240530201616.1316526-1-almasrymina@google.com> <20240530201616.1316526-3-almasrymina@google.com> <5aee4bba-ca65-443c-bd78-e5599b814a13@gmail.com> From: David Ahern In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 6/7/24 7:42 AM, Pavel Begunkov wrote: > I haven't seen any arguments against from the (net) maintainers so > far. Nor I see any objection against callbacks from them (considering > that either option adds an if). I have said before I do not understand why the dmabuf paradigm is not sufficient for both device memory and host memory. A less than ideal control path to put hostmem in a dmabuf wrapper vs extra checks and changes in the datapath. The former should always be preferred. I also do not understand why the ifq cache and overloading xdp functions have stuck around; I always thought both were added by Jonathan to simplify kernel ports during early POC days.