Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp66409rdb; Tue, 19 Dec 2023 09:27:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMPgBUE+NnJvUipvj/2FBY05Yac7fz+4Q1B0OFq/K8bhiMyUnwvC6HMAnWo3BDwjqRpr2k X-Received: by 2002:a05:6122:4b0b:b0:4b6:f254:b234 with SMTP id fc11-20020a0561224b0b00b004b6f254b234mr52677vkb.32.1703006877583; Tue, 19 Dec 2023 09:27:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703006877; cv=none; d=google.com; s=arc-20160816; b=GyEWbGuzge5T8T48AefNPNVqdhbgBsHzoJQ6QcGGPL45BWca+YwFp4gtsTaQgzcp6z 5xANPSPeKoKBbbtAD0wPEFKaMiRk6hEnhH4+Jxmk+AaZX8iGNai6WnF0jF384gy4KqC+ wHYARUXM6PWgOXt1JkawHZnZEXopBlcGCTJWWgFWMssKX/R3fibJMXfdt2oPzPr0Gkd+ suOGJleLUeo/M5BGoqG80Vx5PtV+mkt/tATZdta+gqvjJXMydQiEbXCqRdzMgwZqQoBo XgoD0aJ+17mMh4wHvpFMkIDef309sFKzadMLJ+KrG803lJsPf+Sv0Iuwd6qHZgS/bvPq DFlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=UdBXHobU/TDJkZyR8l3Y3KrInvE9xX6bF3D3uGhwm88=; fh=REboFRtcMyk7xJndXlQvlOvQ0oWJYpeEo+N5+U6RoRk=; b=kPQnmQpLECSbayS9w8wuk/KQZMXskkzqs0LhMA00ASNKW7nTUaH918ZUlEdn1uJJDn otk75QtmGPNTvmmagAfdvwpyEnzxxODsdFtEFO6+DlTRwn6i1P3XlRN3d3TvEQ4f98ht D0SML2VAPhpWAvpQAqI9yf5HhAwBFlUW15YzpaDOFxteEm8WKtL1oZBImf4ZMHKDAW0d UqjaxtOQuka0XECuipZVA6URjt6fdEnQo8lnhs0VQujQugdlkkdblmDPO1PqGGMWsY8h G/acBmZCpo9Z9yVh4bWDdmyy/iX+DdfP6Qm9pJ6yxphIXhL6YxgY7RnGlom7Uqv4T/Ep ieKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=iGUtjMxO; spf=pass (google.com: domain of linux-kernel+bounces-5690-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5690-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a187-20020a1fcac4000000b0049d6e5e7d94si4791253vkg.110.2023.12.19.09.27.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 09:27:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5690-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=iGUtjMxO; spf=pass (google.com: domain of linux-kernel+bounces-5690-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5690-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4758E1C21213 for ; Tue, 19 Dec 2023 17:27:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8EC312C187; Tue, 19 Dec 2023 17:27:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="iGUtjMxO" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 3023636AF7 for ; Tue, 19 Dec 2023 17:27:39 +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=google.com Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-1d3e4637853so93935ad.0 for ; Tue, 19 Dec 2023 09:27:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1703006859; x=1703611659; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=UdBXHobU/TDJkZyR8l3Y3KrInvE9xX6bF3D3uGhwm88=; b=iGUtjMxOKhHRHLdb4Ivi53xjL/Iru7ZW/uMHRUB6gVhNlWgKsk1956IJ3tj4uznkEy doegLK9lscrQM4ZAZHbo1KiCw3D+Trb7UwBa4q0f7wDqTzWBbMEE7iq6XOl0ixPmA+3Y XitK52NpzO8W6t+Z7G8IOGVO8RoeGAbsw+Y+PAY5iC8UrhvZ/9fHZTWFzQ6pl7BXaUBA w8Wv/Uj0q/1mYOwmTHAXJfsFDacBsMjew5LSob+1wEK0IpcAuOXkgZpNnBWZx+waN5vL WIgtIws5DuNbOky2cu62ooyEv6KcL5Q8pu9dEiHptQok0rGTRLZwknq7Bn4jtArEZERw EWmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703006859; x=1703611659; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UdBXHobU/TDJkZyR8l3Y3KrInvE9xX6bF3D3uGhwm88=; b=XH1X/hE2mb98TsyLMJvDCtWMv1ishDFDgcisqUu+ODEeOG8hvjnEhVPccPRIMgCFn+ 9Ememhuv1FGw06riiCl8fQnIpGQ3d3KwIhBX+HDL6AY8rhJRmncwEET1W3KkqFUkuQjM FqHRRDC1peW/AKzNSk7q7zVGgfqjbuWU94GHP2f53cGI9WqV3QOEgMh1+gLocgiWeIjI p6syKUyf6bIcpM4WS+zb8VWM55VvVi6vU1tDvwzZ5aWzaD8hIxlopagS5hGalbZLYGwk 3UCqQ/08FxjL09BdR2hOhf7N5xhWf7lB9FrXhXEym87sZfGdMBDfTz7ozbF1C2AlO43c hrQw== X-Gm-Message-State: AOJu0Yz/P5eaCDog9aPSG6VnVHs5EY5Uj7dKavqnzjQ1+KoHT+JQKoOB ZMbxVL7SjOji5UDTN1QtvtuySvUwZkt07itw6gI5A/FGzrjk X-Received: by 2002:a17:902:cec6:b0:1d3:ce75:a696 with SMTP id d6-20020a170902cec600b001d3ce75a696mr211169plg.5.1703006859127; Tue, 19 Dec 2023 09:27:39 -0800 (PST) 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-3-almasrymina@google.com> <20231215185159.7bada9a7@kernel.org> <84787af3-aa5e-4202-8578-7a9f14283d87@kernel.org> <20231218140645.461169a7@kernel.org> In-Reply-To: From: Shakeel Butt Date: Tue, 19 Dec 2023 09:27:27 -0800 Message-ID: Subject: Re: [RFC PATCH net-next v1 2/4] net: introduce abstraction for network memory To: Mina Almasry Cc: Jakub Kicinski , David Ahern , 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 , =?UTF-8?Q?Christian_K=C3=B6nig?= , Michael Chan , "David S. Miller" , Eric Dumazet , 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?B?TWlja2HDq2wgU2FsYcO8bg==?= , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Jason Gunthorpe , Yunsheng Lin , Willem de Bruijn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 18, 2023 at 2:39=E2=80=AFPM Mina Almasry wrote: > [...] > > > > You didn't address my feedback :| > > > > struct netmem which contains struct page by value is almost as bad > > as passing around pretend struct page pointers. > > Sorry about that. I misread your original request as 'here is > something else you can do if you want', not something that you feel is > critical. Honestly I missed the subtlety and the approaches seemed > roughly equivalent to me. I will respin after the 24hr cooldown. > Jakub's suggestion aligns more with the encoded_page approach as well, so let's proceed with that. Waiting for your respin.