net: page_pool: report amount of memory held by page pools
authorJakub Kicinski <kuba@kernel.org>
Sun, 26 Nov 2023 23:07:36 +0000 (15:07 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 28 Nov 2023 14:48:39 +0000 (15:48 +0100)
commit7aee8429eedd0970d8add2fb5b856bfc5f5f1fc1
treea42444b0d1849dc8a780e83255e9dcb43b396e3b
parentd2ef6aa077bdd0b3495dba5dcae6d3f19579b20b
net: page_pool: report amount of memory held by page pools

Advanced deployments need the ability to check memory use
of various system components. It makes it possible to make informed
decisions about memory allocation and to find regressions and leaks.

Report memory use of page pools. Report both number of references
and bytes held.

Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Documentation/netlink/specs/netdev.yaml
include/uapi/linux/netdev.h
net/core/page_pool.c
net/core/page_pool_priv.h
net/core/page_pool_user.c