page_pool: Add recycle stats
authorJoe Damato <jdamato@fastly.com>
Wed, 2 Mar 2022 07:55:48 +0000 (23:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Mar 2022 09:55:28 +0000 (09:55 +0000)
commitad6fa1e1ab1b8164f1ba296b1b4dc556a483bcad
treeb6d7fe2b361eb191e1df90be5980fbbd7e112c90
parent8610037e8106b48c79cfe0afb92b2b2466e51c3d
page_pool: Add recycle stats

Add per-cpu stats tracking page pool recycling events:
- cached: recycling placed page in the page pool cache
- cache_full: page pool cache was full
- ring: page placed into the ptr ring
- ring_full: page released from page pool because the ptr ring was full
- released_refcnt: page released (and not recycled) because refcnt > 1

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