Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1144568rdd; Wed, 10 Jan 2024 09:54:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IFFjWSLtXgh/SwbwOctHYaF2XWRJd8A9r8bXTuQ5fCW6E6bsldvB5unKCo2If9ySM+u9vHP X-Received: by 2002:a17:902:8686:b0:1d3:62b9:838a with SMTP id g6-20020a170902868600b001d362b9838amr1219647plo.132.1704909264717; Wed, 10 Jan 2024 09:54:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704909264; cv=none; d=google.com; s=arc-20160816; b=vaDMIaxL03RyiUT07B/KW80IDhyCnTq7Dc5t1v3DfKzuJLfLQwZQWiGRTavo81SeR3 ay1g5sGu3JEug4fwJn1SHEYjgdjpeBISeoMphH82n2AaiqXLpTA+FQeaFpAQAI+hzGUy jhsNgFgUbzpL5SSrKk1UOwGsbGBhyjOU1dV6lBDq1fzCyR24A8FGEqRSYz2jupupcSZW pqvEIT8KouOSpItXehzXMMJnLYWBXfgIlkaQPK8vj6OEhiDXNryvtinTij0FLCHcxiQu FgmG/VTI3r1SO4onNp5ldOX0C2J+zVcBB9fzwqG7n+7Ui3lWz7vssdZs4PrpJIZ1OKAo je9A== 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=ziX4iAyQd6HuMoejvtTa4o/24+LLm+GeIG6etI51RFw=; fh=V0IEcSMQCtqoU1fGQFd5NM/TEOxzNS8yaS0hlLI9wzs=; b=PdPKSgpFXJIAk1DceN4Tha9kVw6l6hki0hrvcpLl3lEPMLMo4A5c3L2Ca4miu2M49c L9HhvLJiF01sPB/7C/QJy1i9n1Xb5N+YVt49cIuD+7GsC4NbcDjuZSoWdMqVuo5m/DoV dZwYtcsPNgbIDESFlrqXJdZ4clGPI8JUKz5DUGOi7+1nk5m296+UQIoZFlcTAn2ZoTOa +iWi7Ntm8BhfwfF3mj/SLBokFm1mT8d/1c8Ml6sMCDmUbs9P3NoMB84bFDDEmW+OHVVt PicnDoAwAt1Est/s1YA5eKnxpeuc4B8U4uDkZDnIH6+59PHfDSpFW//gK3Gd9f9wVcIa ctAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=RGkElYkx; spf=pass (google.com: domain of linux-kernel+bounces-22562-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22562-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. [147.75.48.161]) by mx.google.com with ESMTPS id i7-20020a170902c94700b001d3efef85d6si4529893pla.239.2024.01.10.09.54.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 09:54:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22562-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=RGkElYkx; spf=pass (google.com: domain of linux-kernel+bounces-22562-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22562-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 BEBADB2695F for ; Wed, 10 Jan 2024 17:50:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BDD84D139; Wed, 10 Jan 2024 17:50:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="RGkElYkx" Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 99E584D105 for ; Wed, 10 Jan 2024 17:50:21 +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-f173.google.com with SMTP id d9443c01a7336-1d3ea8d0f9dso158375ad.1 for ; Wed, 10 Jan 2024 09:50:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1704909021; x=1705513821; 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=ziX4iAyQd6HuMoejvtTa4o/24+LLm+GeIG6etI51RFw=; b=RGkElYkxQBgBJkizvSkQMJOVLAS/Rb/Kepoa5WqZhH2V+qYL2wa5vDpervBAc0M09E +mKHacKxWgjrRd3ILvbdSh3kF7xjtbLhnCGHY9bfw3IDz0X+nanlLW6ytJP7wvhAL2nX 2Yy7angzUm+GDmpQ9p2M+ZDUURDMW2uK/+6WKyACxLauMlSdGTCL33YhydIYuGtPg4iG Ht+TCkNTNwMi75caTg0zZXPgXU2q3NdGfp/DRIAMre1qx1AimDHAoNRRGEo3CLkJ/Z5Q ZF7M0NxXVxhoAH6B2IP9PJIaG92fRzBTJ0eAQkPl0Z9vpLDFGM8MVQzImPFKgHBcjOIO LUfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704909021; x=1705513821; 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=ziX4iAyQd6HuMoejvtTa4o/24+LLm+GeIG6etI51RFw=; b=rJkfwluYrFcimfFb3aaDgLzHk+BQhJiROOq8/utInM1/P0LHNIxljaBYUAksmorsUr Ioz/kWvUxOdlDLu9ifeEPvWNMB9gXVotMQKIe/pvVwHiAUvmt1DTkHrhun5cCrUxQPZP 44vHnAJtVlqcaKFXkGLF1G2Fg19S5FukrLH/+hIURL1WleuVefaeF93Mm+90VSZ3Xlt2 U4ZC1ponoOLQ10+2dIOeOx2CHr7o13vD3omj1EDOBMaqmTgwLulkJUJuXN2dRmDMemd+ 6OGD5nU6vsl3gT8m4vqRM6S0O6KmHRYruJbKFnXegSkinPxKmpd4OfW3IsWlQsakXCKN xdtw== X-Gm-Message-State: AOJu0YxzED97FJDX2nq6eE4roTCcZfmP5ddcxiDJqBa0wF3+KqOVNJoE LliOKbjCUAAhYiXLMRiB/vN58mPly/Gqzz5khCZRqJsyp3U/ZO3C7qAKVdex0mpVMPQPyIcNt9N ReiNUDD3mYqJWK8yRlDHQ+aawbC4/uv8dvLpBr7iCe7bc6NC4aw== X-Received: by 2002:a17:902:da8c:b0:1d4:c2bd:eff1 with SMTP id j12-20020a170902da8c00b001d4c2bdeff1mr7544plx.8.1704909020628; Wed, 10 Jan 2024 09:50:20 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231220214505.2303297-1-almasrymina@google.com> <20231220214505.2303297-3-almasrymina@google.com> <20231221232343.qogdsoavt7z45dfc@google.com> <20240104134424.399fee0a@kernel.org> In-Reply-To: <20240104134424.399fee0a@kernel.org> From: Shakeel Butt Date: Wed, 10 Jan 2024 09:50:08 -0800 Message-ID: Subject: Re: [PATCH net-next v3 2/3] net: introduce abstraction for network memory To: Jakub Kicinski Cc: Mina Almasry , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux.dev, "David S. Miller" , Eric Dumazet , Paolo Abeni , Stefan Hajnoczi , Stefano Garzarella , David Howells , Jason Gunthorpe , =?UTF-8?Q?Christian_K=C3=B6nig?= , Yunsheng Lin , Willem de Bruijn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 4, 2024 at 1:44=E2=80=AFPM Jakub Kicinski wro= te: > [...] > > You seem to be trying hard to make struct netmem a thing. > Perhaps you have a reason I'm not getting? Mina already went with your suggestion and that is fine. To me, struct netmem is more aesthetically aligned with the existing struct encoded_page approach, but I don't have a strong opinion one way or the other. However it seems like you have a stronger preference for __bitwise approach. Is there a technical reason or just aesthetic?