Messages in this thread Patch in this message | | | From | Shenwei Wang <> | Subject | [PATCH v4 1/2] net: page_pool: export page_pool_stats definition | Date | Tue, 15 Nov 2022 09:57:43 -0600 |
| |
The definition of the 'struct page_pool_stats' is required even when the CONFIG_PAGE_POOL_STATS is not defined. Otherwise, it is required the drivers to handle the case of CONFIG_PAGE_POOL_STATS undefined.
Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com> --- include/net/page_pool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/page_pool.h b/include/net/page_pool.h index 813c93499f20..adfd4bb609a7 100644 --- a/include/net/page_pool.h +++ b/include/net/page_pool.h @@ -84,7 +84,6 @@ struct page_pool_params { void *init_arg; }; -#ifdef CONFIG_PAGE_POOL_STATS struct page_pool_alloc_stats { u64 fast; /* fast path allocations */ u64 slow; /* slow-path order 0 allocations */ @@ -117,6 +116,7 @@ struct page_pool_stats { struct page_pool_recycle_stats recycle_stats; }; +#ifdef CONFIG_PAGE_POOL_STATS int page_pool_ethtool_stats_get_count(void); u8 *page_pool_ethtool_stats_get_strings(u8 *data); u64 *page_pool_ethtool_stats_get(u64 *data, void *stats); -- 2.34.1
| |