]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbbd93fb80378a75a1e9963768283d1a93c0616f9
tree8e82d1824f8e50521538e5c2846e156e17b62b1f
parent36865ec5db7e937c0cba236e3ae0356c9c943193
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