]> git.baikalelectronics.ru Git - 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)
commit93ba1a7cedfa8d2f3782b442fc34b6447b622e73
tree11ff138bdeb2e30163bd2af3379f893aa4ac114d
parentcfa0c96e2c1dd1bc9b7a7a2dbeca30feff6961d9
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