Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2802236lqz; Wed, 3 Apr 2024 09:01:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWKh4VOVasFa+sIobt7XfFZduLgtoF9NhTrFMmvg72LBk5h6Jbb4Bb4AsvDW73sVpBdZxHEOxtsQH5+zJJYsHMVJqtMSkbxnkbMjGk3Sg== X-Google-Smtp-Source: AGHT+IHhCL/AleUc3psnDiDQ7zq3tdWFAcmlolIaLSAaNxEYMtEVb6jbKcHtH5c2Bn07N9PVpEuM X-Received: by 2002:ac2:4a72:0:b0:516:be41:5092 with SMTP id q18-20020ac24a72000000b00516be415092mr2127106lfp.13.1712160095093; Wed, 03 Apr 2024 09:01:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712160095; cv=pass; d=google.com; s=arc-20160816; b=xhWN6retlHS4USX5u69MI/7eB5S67W/iAoWmo+Zelpbtra34gzhQ8O8bt/lXubO3TT x43desdL8BvwZapz5CzDTYIQ2cr+K1VZVF74nW/DJsCSzy0jz4ZP+2JsSEMYIaxkuNSN m8jJS8cQZBMLehakPCZHt9ePRcyNzLqRiqMqtgPqzpC3nko2Z8E9E4m3JJBgNilX2LHb iVcGG/BLUx262lj0/bumvSAu+Cj+Me/PyO29VdhKNSnQD4T7B7Yw4YOJj4Kv5+n/eHk4 WaFVJ0+WfLiBMpUR4Ueg7Tdz07H91zqe9qYDIt9Pytzprf25Df0aSDm6nduS+smP9+/b R3zQ== ARC-Message-Signature: i=2; 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=hD5yDhx3K11qOSGBNDBsF2hWDD99wueNyoFwjeFs7nU=; fh=GRL74VtYI7A66NNjpfxgGLxuqpVWPEH8vkQAUzL+n8s=; b=btu8QfBZ1nDsp3L5oOEiOrQ/q6JhGUTEjWfJLJyPSmM1lULtt6YG4FnZxFml/APpD4 Qr48qWPosAdBMnomsBSP2NcpmiDqnC5NrBq1C8UE+tfPIVu6di1BmfuaBNVPwp/X/C9S SbEI8g18J1oP1pKLFhyIpVKIyBtmlBaX3Rd4QiYL+qosuvdzsNFEeUEsMGbva04nUhWH 7wKaaOeWk0CelKpagKP+Vh67f+EBNxJD3MTne7fIBIsuwn1hWDmOhD+RZB/et8/E01mu oGCLHhzl6vExOhDwSKVUJ3F443owQHiSOTQOVAPYf0v4ZPfCn6LvEPktMhgicThuupeM mmqw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=PiIS8z13; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-130153-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130153-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ga41-20020a1709070c2900b00a4e4deb12e0si4982403ejc.753.2024.04.03.09.01.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 09:01:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130153-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=@google.com header.s=20230601 header.b=PiIS8z13; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-130153-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130153-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8B5531F23919 for ; Wed, 3 Apr 2024 16:01:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5412E14B09D; Wed, 3 Apr 2024 16:01:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="PiIS8z13" Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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 E1EC214A63E for ; Wed, 3 Apr 2024 16:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712160069; cv=none; b=lKmX/QHoBPvREEyKlBA+kvsxPPfxR+JvEy0CswHJkc93slhH4Zx1HnaGH1C9/NA8ojhFdiNXD4vD1McWXpszpY+5uLrwhbUiNhXV9G04HAAbFssbPXq69mU1TvumZVPCYmBuK703VJamBa3iyjWd+UfdylLN+ZeURN4iTz/aT5s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712160069; c=relaxed/simple; bh=hD5yDhx3K11qOSGBNDBsF2hWDD99wueNyoFwjeFs7nU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=MJDpC7ObIqEBGH3GMggLq3kmJAHToaGxgMinbMpU+c8AAaQ1hvrkP91dAc1p4ediku7YnJdGPq+7gnc6ku0DF0SECSe3dmLyyscnvzEHLECiyu61z24L2JIcdkUBXNGaiWj6i8tJSPlDAnpNS/lfRoSjOMg3w8J9rYcBigZkE30= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=PiIS8z13; arc=none smtp.client-ip=209.85.208.50 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-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-56e0c7f7ba3so11021a12.0 for ; Wed, 03 Apr 2024 09:01:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712160066; x=1712764866; 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=hD5yDhx3K11qOSGBNDBsF2hWDD99wueNyoFwjeFs7nU=; b=PiIS8z13223ePGsajmfUoutx9n2GPnlrR8QsR7lKnd/nqw7KckVpbjoJnCrXhS28vD nyAYRWgZ+K4LO/T/Ybm4qyiJdx1EWESdN+VLePz9scAt3eIwtz8+q8X1vNZ7GSPKOGTk SOqhts7JbIDTL04yguorV5oAAelpCyEMUgAwS7/SakOtPJdLkYBB4v2WrFJdLRrOB1AX +sfGFRtOGrNDmdhkce+RScjuqrg+Dskf/84KkhrsR+EXvIDq00vwyxQtXXTjEiZzWGYz NoTwG+/w+bgFUzqxevLvjx5ptLytKaHb79djUamFS4syp/dON3cgJnfdU3vQTOnYkOXx o0rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712160066; x=1712764866; 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=hD5yDhx3K11qOSGBNDBsF2hWDD99wueNyoFwjeFs7nU=; b=na+QnWhkM8U1k2iTIBTJfiYXR7grd/2RZs2PPhmi7bsCljMaCv0GI8XFxE15g+g/56 9r6x6k16wgbV4kT+KNFA7YhfKa346aevlkHpXwdIVcqapSUJUoBxnS+eoJM46g9IUNPb fLBx9IZ6ZupXnAvxN19s6XurGS3XWjTZlAhJCEsK7UkYmw3PS+BV2z8cOlY9h/y63g/y 0t1CixlOLDurxOvG1se+2elbmxOFcIbGA1NpoPcKCYTFe5/KuwqU1QJDab4alID9VWSr ilFmMen/Nr3lXvutydbq5zUzYJWPvHTOVPj/nV0+DrfFcf5mPbhV8EHMGOzr5gwr1U64 72kA== X-Forwarded-Encrypted: i=1; AJvYcCX5+4y6v0qbPWsO2D/9GW32Tba5UgtQMjMWxB5VKrTz+9eNTH4BPFlRD1+h5vbl2JUzYaVLCfq6D27Agd2Lp/8r9aF9e+hSVIHmnfi6 X-Gm-Message-State: AOJu0YyYSyyz66Z7jnbVNs2mwjhFG2qn6Zg4WRnvn7AEGY8mb2Y5DeIN TEmeQXXl4rNACYaZwkQIutTs8kBUCNGEI62zKvSX7cp0JhoJtU9ilhUgMiQYB65+0lD7dmmbVuc leA3mhGB3tBKx0P9bINClfrivAvwxtyn74pkxgqVKwwcqgPYoBQ== X-Received: by 2002:a05:6402:1c87:b0:56d:e27:369c with SMTP id cy7-20020a0564021c8700b0056d0e27369cmr180575edb.3.1712160065956; Wed, 03 Apr 2024 09:01:05 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240403152844.4061814-1-almasrymina@google.com> <20240403152844.4061814-2-almasrymina@google.com> In-Reply-To: <20240403152844.4061814-2-almasrymina@google.com> From: Eric Dumazet Date: Wed, 3 Apr 2024 18:00:52 +0200 Message-ID: Subject: Re: [PATCH net-next v4 1/3] net: make napi_frag_unref reuse skb_page_unref To: Mina Almasry Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ayush Sawal , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Steffen Klassert , Herbert Xu , David Ahern , Boris Pismenny , John Fastabend , Tariq Toukan , Dragos Tatulea , Simon Horman , Sabrina Dubroca , =?UTF-8?Q?Ahelenia_Ziemia=C5=84ska?= , Pavan Chebbi , Christophe JAILLET , Yunsheng Lin , Florian Westphal , David Howells , Alexander Lobakin , Lorenzo Bianconi , Johannes Berg Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 3, 2024 at 5:28=E2=80=AFPM Mina Almasry wrote: > > The implementations of these 2 functions are almost identical. Remove > the implementation of napi_frag_unref, and make it a call into > skb_page_unref so we don't duplicate the implementation. > > Signed-off-by: Mina Almasry Reviewed-by: Eric Dumazet