net: page_pool: add page allocation stats for two fast page allocate path
authorJie Wang <wangjie125@huawei.com>
Thu, 12 May 2022 06:56:31 +0000 (14:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 May 2022 10:28:55 +0000 (11:28 +0100)
commit0f6deac3a07958195173119627502350925dce78
tree8e82d1824f8e50521538e5c2846e156e17b62b1f
parenta19cef450bb6b1365c3bd5c82952f95b76688143
net: page_pool: add page allocation stats for two fast page allocate path

Currently If use page pool allocation stats to analysis a RX performance
degradation problem. These stats only count for pages allocate from
page_pool_alloc_pages. But nic drivers such as hns3 use
page_pool_dev_alloc_frag to allocate pages, so page stats in this API
should also be counted.

Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/page_pool.c