Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2434451lqz; Tue, 2 Apr 2024 18:41:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU8gwxqXX8pxx46+mWPIpF0P6b53pXDLjAdXMhdCEmLBy3OPgXxRp5YSC/kBVZ0bHTgxUFdYe3zkM2MDZKXs8gBiHXh8tuzMstS700hzQ== X-Google-Smtp-Source: AGHT+IEm6zDe90hYJJwMVZr0WJZYOlWGEwt4EJJvoUFshedZ/REDysOX2lQrHljsA6j70z2xS/Oq X-Received: by 2002:a17:902:b682:b0:1df:f681:3cd8 with SMTP id c2-20020a170902b68200b001dff6813cd8mr1767358pls.12.1712108471603; Tue, 02 Apr 2024 18:41:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712108471; cv=pass; d=google.com; s=arc-20160816; b=JbjiCJrl2I1r41uMRTGZ/qJXGDV7vp5KA5KYRe3wDa2d+zAasNvlnyFUQT0EWruSSV TvSv0F7KIMUdavHU0MzdycspjKwRwiGuuefCZKEJkiEz/+tJl5aw2b5vYawRK1yI8ao/ x33Q/fsaGqvkhh8HoT6rRxkl+jxnvnNelccMBENZG27IhO3zIqg6fED4A/BoRaX7GpYX bmHH23Jxw6igbWOgmhVPOK6NO1VseAcgrjRQR65R4oWD9V4L9CidtmtQZUsaG+wVFJco fKfjIUSeksXbliQ0X9Wd0nnZTaG5mrm7v38WvFAa/JNi1tczieb2jW2sbmyw+oTgSe+3 T+WA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:date:message-id:from:subject :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=YaWikmaOceq99wzMP/gAtucw77CifPmu1U37oO8FPDI=; fh=sLOZyJ5JV0iwj+bahScIrASwcRFWc7q8GTh4fTtkREg=; b=zdVoB972tf+O15QwuKQEFIdNKTe+AhkdLzRy3CW37cr0B8SZju4VoVwAc4e2dr0p8a nhR5QJhUfayiYiSssP876yjGHitkRSKE31J8dZ02g/rPhOUFCnknsXoaP//194+rzthr V/441fij2ARtAU+xkCBFyJxGjqPr04Tg/MrlEVnCBn4rFyywJQvaOO+L5LysIDOLhKSJ x1jn+864S6TRPU4tUnVpS79nidmBMn7jQuKJod3ZslYArlZP7QO4CBkls+CrZgD0I87T FKUnKEaRKyX0aVMXUxTYcX6E8VQvEYDPMvT93x3U/hQbk2CB7sx5sPaSIKN7Ox/KCxaS mkKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nmQrQzJ1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128943-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o16-20020a170902d4d000b001dc3789a2bfsi12838411plg.495.2024.04.02.18.41.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 18:41:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128943-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nmQrQzJ1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128943-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 257A4284E6A for ; Wed, 3 Apr 2024 01:41:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B1DF1BF20; Wed, 3 Apr 2024 01:40:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nmQrQzJ1" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48CCB15491; Wed, 3 Apr 2024 01:40:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712108435; cv=none; b=jNejiR4Nsl3HAIYuJes1DNFFmw4PrF+EEW1gfBl5ESeuC0NjGMAg0NQL7vG3Z0xEG05p+tcjbRjqkpiGQIMdesMu/bb0itW7ZC5/B+RgkRzgZUjHtbEqiMgCdGG7y4Ku2v2Pg6+61VQ6HqKvFWq8F9Pa0qip0YDWWfAO8Ix/uwY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712108435; c=relaxed/simple; bh=PnfFkAtq+kYoDUuoqH9ov0mIK+LroF3jkGYMhtBgEDk=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=Prq3Y1LM+SOJxezv4WHBBDrPhGj7YrAi0ZgNxRKJGI+fgPijkvrxJq+ZvRwc36SKsMiJmoEyFYPscVRXdDjIzmoIVrQU3M9Gk3AzIzUowXNeO9N1TysUbZmMQvF71vSoPBWQg2l8IXwJsTetRxTjX5nWBrUaT8/ptGdDF+4+MIA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nmQrQzJ1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id D607AC433B2; Wed, 3 Apr 2024 01:40:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712108434; bh=PnfFkAtq+kYoDUuoqH9ov0mIK+LroF3jkGYMhtBgEDk=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=nmQrQzJ1ehcIQlPA3DCYl+kcxvnaFaGVdmbaIfzjKOsGU00usDRz7RNZBS6GzImd1 Ghh3qz0miLZKo3OijTHdWKEQrDwDWxRiia5RMT0fmaQdB3vRZ6gfzW8Ss6kdyhMY0a 2QkWdFi62sRg4E6cGJ5LT9YV4hh+CkXIDP1jyVOIwmbeYStkwammnGaDqZg1IbpWIk c+/0Mfu1ewaFnLCu6JM9iKTI0EWlj+SWSIBHOSqYFMMQD7OHJWUhG2B7PNgU0yhZnG xOXFDYLza5g/wxFOi8+7nZJpqvTfV9ZeuiW7WLVzJ8EkyjdzrIxsWQMp57wCnCGFw2 tDUPywsGxtlqA== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id CB05FD8BD1E; Wed, 3 Apr 2024 01:40:34 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net-next 0/2] page_pool: allow direct bulk recycling From: patchwork-bot+netdevbpf@kernel.org Message-Id: <171210843482.14193.13072464299514068706.git-patchwork-notify@kernel.org> Date: Wed, 03 Apr 2024 01:40:34 +0000 References: <20240329165507.3240110-1-aleksander.lobakin@intel.com> In-Reply-To: <20240329165507.3240110-1-aleksander.lobakin@intel.com> To: Alexander Lobakin Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, lorenzo@kernel.org, toke@redhat.com, nex.sw.ncis.osdt.itp.upstreaming@intel.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Fri, 29 Mar 2024 17:55:05 +0100 you wrote: > Previously, there was no reliable way to check whether it's safe to use > direct PP cache. The drivers were passing @allow_direct to the PP > recycling functions and that was it. Bulk recycling is used by > xdp_return_frame_bulk() on .ndo_xdp_xmit() frames completion where > the page origin is unknown, thus the direct recycling has never been > tried. > Now that we have at least 2 ways of checking if we're allowed to perform > direct recycling -- pool->p.napi (Jakub) and pool->cpuid (Lorenzo), we > can use them when doing bulk recycling as well. Just move that logic > from the skb core to the PP core and call it before > __page_pool_put_page() every time @allow_direct is false. > Under high .ndo_xdp_xmit() traffic load, the win is 2-3% Pps assuming > the sending driver uses xdp_return_frame_bulk() on Tx completion. > > [...] Here is the summary with links: - [net-next,1/2] page_pool: check for PP direct cache locality later https://git.kernel.org/netdev/net-next/c/4a96a4e807c3 - [net-next,2/2] page_pool: try direct bulk recycling https://git.kernel.org/netdev/net-next/c/39806b96c89a You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html