Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1095822lqt; Fri, 7 Jun 2024 07:57:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/i5V2RJZUEuqZV5oUNPaRzMqbKm+Ndpj2WR8HjBjjQ4JcVBFldvSd7uoTax/YY+9Y6qzfWsD98IJhmuo+JpOL4tTAXVw5i53iK0VGTA== X-Google-Smtp-Source: AGHT+IG7PUYYqaWsG7Ghn87LKdAz2eJDuG3JDpRr3W+K03V79diU6cUyQEMa3FyQiprmeBtC2XNF X-Received: by 2002:a17:906:12c1:b0:a63:3cd4:97d2 with SMTP id a640c23a62f3a-a6cdbd0d2e5mr184260666b.63.1717772255240; Fri, 07 Jun 2024 07:57:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717772255; cv=pass; d=google.com; s=arc-20160816; b=CNaT7ZsvsQFwDFvmvDlJZYuKsounCavMecD9sU8C6DnT0zugtB/a6KhOrNrTzLDyn1 HrcKOPdZlG+QW84XnD2rQiJYwObKeZdI+dfXa+zNi3DyZo+Ro+zCyyzDBDJz+QHOMCV+ 4HSzaIhB+IwXOhJ8hcKQBvgqYngBvbJmCSAu2huYQLcyoES3n3pYmR8/CSogju6HJn0/ DH29CSu9N4aLgczcPWDIf5NXz6u9KIDI7oFs/ThIIg4WaBZEGYwZKz6I0GuW8Ih13g5y u+xCweLe2Dif/+YKajYrqmjwmcZqWH8rVt7we5jBahi5Kgj/0tvnX7tra+vtXrrtSu9y wWUQ== 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=be9t9+ReZ6YBtow20QbHH2FmkX+nC7rbtPeGa2mS4as=; fh=LZhQRhuGRagYof+hJGE1RCJQrO8M0HLMPPZ/mfFEqK4=; b=rzMkfLBhFMdpbxJjnHQhRO2wJkhDIZnrPILYWyCJhFxVEFnabWMg6zxJu5FhFzDy6G n732BExU3XNm5vL6L7V1nHSXoYJvk3MS/hWHCwO0RXWSlJ18ExNJu9KtRDDSfKR0o6Xk J+fkqyWof8NAsnaDNeFIk/q3WTyuvvB2p+gNiTFV+UXjocCevvzN5EDwh/Je5Tk0cMe9 XnvOhbwhXnHSdiCE+1HrwNW2u7VMsWnAF01ZwKiuqMrhTOHE6U9HfQnRZq80RQvZbILM 1VpR6RhEUeacW2zMvQ+CvdfEJfgWLdUPmCfutx0pjC5yFVPo4SEb1oIKN6awZakWQGpk 95pA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=hQJmj9FG; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-206315-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206315-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 a640c23a62f3a-a6c80708fe2si187518366b.634.2024.06.07.07.57.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 07:57:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206315-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=hQJmj9FG; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-206315-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206315-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 B708F1F267C9 for ; Fri, 7 Jun 2024 14:57:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 881DD19EEA9; Fri, 7 Jun 2024 14:52:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="hQJmj9FG" Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) (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 9561619EEA4 for ; Fri, 7 Jun 2024 14:52:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717771971; cv=none; b=HhHhnFT9WPkAWYjREqJmBjcm1p3tv8rF511ia4QQRrbaFucZj3VYpsV/NMnFJri2NRhx0mJr/rdkvuP/TqbNpmi+nvwIhHQt/Mb19G61y5JAQ+gm0zy/ZSnGogXpdNtZWtXTAlZ8mgzR6oBPptUPJFAmqkW46qclnNXFpc5HVA4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717771971; c=relaxed/simple; bh=lRtTAdTXNw3RVPrpvvNKKuuzE413bhtwKVpiQVvurek=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=p04ZY4oTzEJqeUiCbPKRS3C2Vi9U23hvxxtp5+uPHKI41qJpIQkODxtgcC0p9eUKNy6dxJWnAcfTuIO1yrBJ37s9m57vMVTFISmXQH1cRMkruZ8ltmxIket32nmcsIFaW2KQxDGfQegGu6zYGEuksuG8hI0H2kqLicWJaxEwwfE= 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=hQJmj9FG; arc=none smtp.client-ip=209.85.222.176 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-qk1-f176.google.com with SMTP id af79cd13be357-79523244ccfso172435785a.0 for ; Fri, 07 Jun 2024 07:52:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1717771968; x=1718376768; 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=be9t9+ReZ6YBtow20QbHH2FmkX+nC7rbtPeGa2mS4as=; b=hQJmj9FGqkDWyCgt/SU+4tUjCosWn1r7jPWCOxSoQcFLTAHBHmCt1UPHWUfacLPk0A J27M3PHiZT4a/3dgSP410VtO8nsNQzDfKUKFxJN3iIePAPaAXbaP+l6LyEKYF4CkTy48 W7AEcymnLWnS3+i8chqAC7sLqibivCTcSwkpGR1xtaFDOarqDm2RsDk88kHT7kdlDC/+ 9Z8FIQqtXasRprzwCsdTxihilrlaHvGsr45MSTgHsNCW06TV4YSXg9RXEoJSh9JliJhN EElPiNvBU31l6J6yWS1+Pv/JSZLa707wvYnKwDocL0pue06OzOB0p871OIuyts6x8rd8 zTsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717771968; x=1718376768; 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=be9t9+ReZ6YBtow20QbHH2FmkX+nC7rbtPeGa2mS4as=; b=eUCq2U483n/l7eccYEsqQZXU0r/3oKa2PgSl0fpvYrSHjCc8KoXkW2Fn8vywHl+EYR drX0h1otbT2q3KjUQ4JePFfW/c3XbXmZ3SQw8JxFlkYfk8VcQYyANYJu4Wo6jQcpPkq6 nrF6I9gjXAeK9mhcX/X+PLeDFBQ3lPDmMfEy+ZkXwcY2WI5nin1wrYu80w294345fXOI 3iKq/Tq+UgGMz3PZ1Yvn87+t8ZMvjQYhiFZhAxANwlet59uPn2qIMI+uUgYWFWbCfxt6 z1k6J6xPJQpCa5EV+gcgk/+CKcc5fBR9tmjN1QUlTx9QRZ+FG2sjl1ke6KgVE2I1N9zt QGQg== X-Forwarded-Encrypted: i=1; AJvYcCWlJTgNwYXOFXjOH3SXWb8pPyo67+awYPfHnc+M/0mINjHSvtJp2L8QVd7hV6rAzHK2UDxrsuJC1SQWsbezJgFgL9bfV5klyxK6GCgf X-Gm-Message-State: AOJu0YyT1NIs1LrgCcNZvFgyN6VIO8IAhAlMeG0X09u5XnFiXB7s5ZW9 QIoy5A/D4ryS1yOgKL66E/R1DWiap8IiJnPAmLeL3jxI2VkcUZcsxBeqSIim1KA= X-Received: by 2002:a05:620a:31a8:b0:795:4e67:1ef5 with SMTP id af79cd13be357-7954e672231mr106304685a.11.1717771968557; Fri, 07 Jun 2024 07:52:48 -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 af79cd13be357-79532870231sm173090885a.60.2024.06.07.07.52.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 07:52:48 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1sFaxT-00HGBa-Cf; Fri, 07 Jun 2024 11:52:47 -0300 Date: Fri, 7 Jun 2024 11:52:47 -0300 From: Jason Gunthorpe To: David Ahern Cc: Pavel Begunkov , Mina Almasry , 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 , Christian =?utf-8?B?S8O2bmln?= , David Wei , Yunsheng Lin , Shailend Chand , Harshitha Ramamurthy , Shakeel Butt , Jeroen de Borst , Praveen Kaligineedi Subject: Re: [PATCH net-next v10 02/14] net: page_pool: create hooks for custom page providers Message-ID: <20240607145247.GG791043@ziepe.ca> References: <20240530201616.1316526-1-almasrymina@google.com> <20240530201616.1316526-3-almasrymina@google.com> <5aee4bba-ca65-443c-bd78-e5599b814a13@gmail.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-Disposition: inline In-Reply-To: On Fri, Jun 07, 2024 at 08:27:29AM -0600, David Ahern wrote: > 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 think Pavel explained this - his project is principally to replace the lifetime policy of pages in the data plane. He wants to change when a page is considered available for re-allocation because userspace may continue to use the page after the netstack thinks it is done with it. It sounds like having a different source of the pages is the less important part. IMHO it seems to compose poorly if you can only use the io_uring lifecycle model with io_uring registered memory, and not with DMABUF memory registered through Mina's mechanism. Jason