]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net/mlx5e: Declare stats groups via macro
authorSaeed Mahameed <saeedm@mellanox.com>
Tue, 21 Jan 2020 08:24:53 +0000 (00:24 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 23 Jan 2020 06:29:55 +0000 (22:29 -0800)
commit96b12796550d0f0a7613f03efa0140f39120946b
tree11ff138bdeb2e30163bd2af3379f893aa4ac114d
parent3460c184dfb0b41118b5000ad78dd997c034b2b5
net/mlx5e: Declare stats groups via macro

Introduce new macros to declare stats callbacks and groups, for better
code reuse and for individual groups selection per profile which will be
introduced in next patches.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h