Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6396145rdb; Thu, 14 Dec 2023 18:11:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IH5giQfFmt4PAv859rMYlR8nNt6lr7Ypher6x+V+81PtLKJ6yBDT1BJktBLRC9YfYctN8UI X-Received: by 2002:a05:6870:75ce:b0:203:3196:702a with SMTP id de14-20020a05687075ce00b002033196702amr4531093oab.69.1702606294274; Thu, 14 Dec 2023 18:11:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702606294; cv=none; d=google.com; s=arc-20160816; b=qvspbXZXRhNFavboi4bylaWTkjKVkp/rQo3cy9HrJdUDVzIgkEB14gvNelmwJwOhFM f6YbgGtO4Z/n6Cf/5FZbFVQebvqB6yt0pdtcMtcCTIX7x3uGD0cGApEDvGukLOSJlxKL X6m/TYSy/f9uFZp07Uka0gTWY2NQa4tTsACMXigAF6C/NTXt+bayA9pBZ15K8ca0Q5gh IzfXtyjKQO1HuJzTqKOKOf4RkOe6qtc8O8IpVF2Zg5ZLAlaM4ZLojHSUHHQPOOGjQ8j/ Xo7tjImhUWZrfkwx1ryi5e6J8t+NuOD4k97dUvfWmVolh8s8BUx8DqPHCvZygbR2qt+u Q7aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :in-reply-to:date:dkim-signature; bh=Hn2u3ohnyQZ77hNqSlm/EvFnLZDsF+Ox+1yQ+iYOeGU=; fh=ViEoQgIhpxAR2tiGUPM/qjp/ernXLsh8CWUNp+TSVxs=; b=YfxF/vrQjYgPYL+TVIwFIrS/RJVTElFpe2VWKrT7walSw9nBzYG8haztz6A8CawyTX i7FwgziDLiQydA507A/ZiXhP4COoqwbIe4KRp3tXR9oSLbG1dmxuZ1Gx0Hp3nSCcmjJy bl88LBmbchVepnD41puX9J7Ip5Sk/j8VdauQpNNfeg++Pq5wwr0rerbX4xLJgy4XMs/8 sj70AW0pbBH1GiKNhbjI9LM+jGEkWr+f/tC0CWjAA1acjh0PC1lM3am0T59jVshb+vo1 KP3OYuVvhsLFndRKtlKakMqtNy4OJLSVd4ao9QDFdNBHO2EyCdyOqkX3anXsZPjJpE9Q dOUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=S4ihFpEG; spf=pass (google.com: domain of linux-kernel+bounces-334-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-334-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y190-20020a6364c7000000b005c60319034bsi12152124pgb.481.2023.12.14.18.11.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 18:11:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-334-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=@google.com header.s=20230601 header.b=S4ihFpEG; spf=pass (google.com: domain of linux-kernel+bounces-334-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-334-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 D3551B220DC for ; Fri, 15 Dec 2023 02:11:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83A11A4C; Fri, 15 Dec 2023 02:11:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="S4ihFpEG" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) (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 8D22D10EC for ; Fri, 15 Dec 2023 02:11:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--shakeelb.bounces.google.com Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-1d36403e815so1926135ad.0 for ; Thu, 14 Dec 2023 18:11:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702606276; x=1703211076; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=Hn2u3ohnyQZ77hNqSlm/EvFnLZDsF+Ox+1yQ+iYOeGU=; b=S4ihFpEGaGASqDXTKfIcJabS3ty2QxSafop+BYrFlYS3RFOOEXc4/eKAaKZjzU4WWh DRXxnvX7n3k/XvfTLWvDbDI7EuR8uo9fqmsBj1c8yy9c253JKQ6y5iHHgfx2WBSiVhqA 2KaQxhu0iAwy+KIml+CkrMRTA2GIVTgZvPP7BdOXDTLu9HND3PfxIVB0/V1suO6spBxu w+ugljbilT8Xyj+wPr5aH1wcv+/1s6U3TWDxYLvRPl9zk0ug9BodKQROgmm6vOHwTIcs r8iMGrzQdnS2SkDKDnKlkoTa1Io+H5bE4s67IUAtJ3FgiB0G2oYsfA9jZ4ClQJbAipA7 /6tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702606276; x=1703211076; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=Hn2u3ohnyQZ77hNqSlm/EvFnLZDsF+Ox+1yQ+iYOeGU=; b=OX0sc55xA9GFLuD0zOqTo5e8Cc9hcwl5nU6kdX010P/nbvMQgVEAKkRaQkJHj1otpR LU6m/uDMqu5ksGa2Ac3rHKIZdh4KWhNXvllvfu9sUxv1EeumEFWMqJs/baa0rBLDdWRC MT1GKA7gIGZ/R2K+x1t1aWkwGqZcpBCpHjxXhbdl6qBnX9KDAM3DCvmupbUjb3kN1r/h uRZ8VnqDBCj7gQ62k8YJXwoqNk1YQYsIXtDEOn75nZ8zhX+CBS6bHQtuhUHgQDZwzWNH UL0hzMbPWtOk0SZ0yAxsayDibFDIOjKaFDNn7wOajCHjfd8HHJQvRhcacLTZG7Nr59Ny uiSg== X-Gm-Message-State: AOJu0YzpWxtVBk41kGX2xxAbMXldZoKniZL0aYljx0DHek0lUNvNljNU ubPU4YV2b5HyQBuBHMNFZz8PxTI3QEa7jA== X-Received: from shakeelb.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:262e]) (user=shakeelb job=sendgmr) by 2002:a17:902:f690:b0:1d0:8be8:bb7c with SMTP id l16-20020a170902f69000b001d08be8bb7cmr1969874plg.4.1702606275789; Thu, 14 Dec 2023 18:11:15 -0800 (PST) Date: Fri, 15 Dec 2023 02:11:14 +0000 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20231214020530.2267499-1-almasrymina@google.com> <20231214020530.2267499-5-almasrymina@google.com> Message-ID: <20231215021114.ipvdx2bwtxckrfdg@google.com> Subject: Re: [RFC PATCH net-next v1 4/4] net: page_pool: use netmem_t instead of struct page in API From: Shakeel Butt To: Mina Almasry Cc: Yunsheng Lin , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Greg Kroah-Hartman , "Rafael J. Wysocki" , Sumit Semwal , "Christian =?utf-8?B?S8O2bmln?=" , Michael Chan , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Wei Fang , Shenwei Wang , Clark Wang , NXP Linux Team , Jeroen de Borst , Praveen Kaligineedi , Shailend Chand , Yisen Zhuang , Salil Mehta , Jesse Brandeburg , Tony Nguyen , Thomas Petazzoni , Marcin Wojtas , Russell King , Sunil Goutham , Geetha sowjanya , Subbaraya Sundeep , hariprasad , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Lorenzo Bianconi , Matthias Brugger , AngeloGioacchino Del Regno , Saeed Mahameed , Leon Romanovsky , Horatiu Vultur , UNGLinuxDriver@microchip.com, "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Jassi Brar , Ilias Apalodimas , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Siddharth Vadapalli , Ravi Gunasekaran , Roger Quadros , Jiawen Wu , Mengyuan Lou , Ronak Doshi , VMware PV-Drivers Reviewers , Ryder Lee , Shayne Chen , Kalle Valo , Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Stefan Hajnoczi , Stefano Garzarella , Shuah Khan , "=?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?=" , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Jason Gunthorpe , Willem de Bruijn Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Thu, Dec 14, 2023 at 08:27:55AM -0800, Mina Almasry wrote: > On Thu, Dec 14, 2023 at 4:05=E2=80=AFAM Yunsheng Lin wrote: > > [...] > > I perfer the second one personally, as devmem means that it is not > > readable from cpu. >=20 > From my POV it has to be the first one. We want to abstract the memory > type from the drivers as much as possible, not introduce N new memory > types and ask the driver to implement new code for each of them > separately. >=20 Agree with Mina's point. Let's aim to decouple memory types from drivers.