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 353D6101F6; Fri, 16 Jun 2023 18:47:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1909BC433C8; Fri, 16 Jun 2023 18:47:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686941231; bh=/Qr0GLXmqNAy+vLSOaufC5FpI6BR6vkDi5r1CSKe30A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=S7ri9AujBQSOsuj+NUkAT5AcrRqR1wK5bAffw7fsPR4vCkL4onocjtO3Q7Gqj/LNK zljqj3vhsUYnKPxNwuTQi61MpVm7sdkuRX5D93OCohEh9L/DEvXtuKz7ebBzc2MOIx NEWszrXK1bjESq/wrW4Q8NHZyVNQ4IUST1WWzmfpKJefEos3L+VrUQ9zd+QsDYGDR5 xBvUKerZwywBlzfnQZn4Q//vUR50Gz1gTnfgkvCR081InJ235lMWdhvf6ppJqJN3N+ zoALPRN/w+gQnYXb4r9x7PfUoAy9cvRkU0hxav1/ch8Oua4l1W2Zk29XFOwoViSCNZ 4JSAVNkY9Kztg== Date: Fri, 16 Jun 2023 11:47:10 -0700 From: Jakub Kicinski To: Jesper Dangaard Brouer Cc: Alexander Duyck , brouer@redhat.com, Yunsheng Lin , davem@davemloft.net, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Lorenzo Bianconi , Jesper Dangaard Brouer , Ilias Apalodimas , Eric Dumazet , Maryam Tahhan , bpf Subject: Re: [PATCH net-next v3 3/4] page_pool: introduce page_pool_alloc() API Message-ID: <20230616114710.7e746dea@kernel.org> In-Reply-To: <699563f5-c4fa-0246-5e79-61a29e1a8db3@redhat.com> References: <20230609131740.7496-1-linyunsheng@huawei.com> <20230609131740.7496-4-linyunsheng@huawei.com> <36366741-8df2-1137-0dd9-d498d0f770e4@huawei.com> <0ba1bf9c-2e45-cd44-60d3-66feeb3268f3@redhat.com> <699563f5-c4fa-0246-5e79-61a29e1a8db3@redhat.com> 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 Fri, 16 Jun 2023 20:41:45 +0200 Jesper Dangaard Brouer wrote: > > This is a sort-of. One thing that has come up as of late is that all > > this stuff is being moved over to folios anyway and getting away from > > pages. In addition I am not sure how often we are having to take this > > path as I am not sure how many non-Tx frames end up having to have > > fragments added to them. For something like veth it might be more > > common though since Tx becomes Rx in this case. > > I'm thinking, that is it very unlikely that XDP have modified the > fragments. So, why are we allocating and copying the fragments? > Wouldn't it be possible for this veth code to bump the refcnt on these > fragments? (maybe I missed some detail). They may be page cache pages, AFAIU.