From mboxrd@z Thu Jan 1 00:00:00 1970 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 2E922259D for ; Mon, 3 Jul 2023 18:53:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A7DDC433C7; Mon, 3 Jul 2023 18:53:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688410407; bh=cFuH7KHphHtbkrf3yGRT3kVRp3RoED0KcNNoFXuTanI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=l6M+nqAxgf5CYh723QNeHNFv44GVcl1/Sys/BpuvR27exTK9OMHPd7+Z7QY7i/z/2 zQSSO5dgyDmDo4RetY+RPYZ+q373rWVlxt7vIoywfYCCdLMbZVOSwWegPjRMptEfYs s2hgxczfHJWucdU5eEwOR049QACqSJHevhItbwOT4Nk+WlbNUQCQl/8d79iIU0EwP2 QYkz4BF6je5KHdJhLiG8d0fU4Q33zYKWA/0cCnIZHHwozF6V7qqNUQdA4HNcwIvTO9 J1ntGcfLV3pA6LbngC0UPjdfV3nq5oLe6RZeNFnovSolCw1HD5pAvDGzfFDBsL6xgb bu9YHCDP2GpjA== Date: Mon, 3 Jul 2023 11:53:26 -0700 From: Jakub Kicinski To: Liang Chen Cc: ilias.apalodimas@linaro.org, hawk@kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, linyunsheng@huawei.com, netdev@vger.kernel.org Subject: Re: [PATCH net-next] skbuff: Optimize SKB coalescing for page pool case Message-ID: <20230703115326.69f8953b@kernel.org> In-Reply-To: References: <20230628121150.47778-1-liangchen.linux@gmail.com> <20230630160709.45ea4faa@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 3 Jul 2023 17:12:46 +0800 Liang Chen wrote: > As for the "pp" reference, it has the test > page_pool_is_pp_page_frag(head_page) there. So for a non-frag pp page, > it will be a get_page call. You don't understand - you can't put a page from a page pool in two skbs with pp_recycle set, unless the page is frag'ed.