]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mlx5: add support for page_pool_get_stats
authorJoe Damato <jdamato@fastly.com>
Wed, 2 Mar 2022 07:55:51 +0000 (23:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Mar 2022 09:55:28 +0000 (09:55 +0000)
commitcc10e84b2ec3aea2cb82129bdf4185d4c05a486d
treea9679043361f8ad4fc325267136a919cb3f2aa66
parenta3dd98281b9f265c7b89cb0c7a91739bff2e6506
mlx5: add support for page_pool_get_stats

This change adds support for the page_pool_get_stats API to mlx5. If the
user has enabled CONFIG_PAGE_POOL_STATS in their kernel, ethtool will
output page pool stats.

Signed-off-by: Joe Damato <jdamato@fastly.com>
Acked-by: Saeed Mahameed <saeed@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h