page_pool: transition to reference count management after page draining
authorLiang Chen <liangchen.linux@gmail.com>
Tue, 12 Dec 2023 04:46:11 +0000 (12:46 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 Dec 2023 02:35:16 +0000 (18:35 -0800)
commit0a149ab78ee220c75eef797abea7a29f4490e226
tree5d9dc405446c68232bd0e066e35daa1bd141df40
parentbc044ae9d64b1b23fa3a3aa5c162afec8348b412
page_pool: transition to reference count management after page draining

To support multiple users referencing the same fragment,
'pp_frag_count' is renamed to 'pp_ref_count', transitioning pp pages
from fragment management to reference count management after draining
based on the suggestion from [1].

The idea is that the concept of fragmenting exists before the page is
drained, and all related functions retain their current names.
However, once the page is drained, its management shifts to being
governed by 'pp_ref_count'. Therefore, all functions associated with
that lifecycle stage of a pp page are renamed.

[1]
http://lore.kernel.org/netdev/f71d9448-70c8-8793-dc9a-0eb48a570300@huawei.com

Signed-off-by: Liang Chen <liangchen.linux@gmail.com>
Reviewed-by: Yunsheng Lin <linyunsheng@huawei.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Mina Almasry <almasrymina@google.com>
Link: https://lore.kernel.org/r/20231212044614.42733-2-liangchen.linux@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
include/linux/mm_types.h
include/net/page_pool/helpers.h
include/net/page_pool/types.h
net/core/page_pool.c