page_pool: Add function to batch and return stats
authorJoe Damato <jdamato@fastly.com>
Wed, 2 Mar 2022 07:55:49 +0000 (23:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Mar 2022 09:55:28 +0000 (09:55 +0000)
commit6b95e3388b1ea0ca63500c5a6e39162dbf828433
tree3d15476a44c79f2230e2467afa937193c64341b2
parentad6fa1e1ab1b8164f1ba296b1b4dc556a483bcad
page_pool: Add function to batch and return stats

Adds a function page_pool_get_stats which can be used by drivers to obtain
stats for a specified page_pool.

Signed-off-by: Joe Damato <jdamato@fastly.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/page_pool.h
net/core/page_pool.c