]> 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)
commitfd900d120f4ce7fa8a47cfe5b1df487714ff9707
tree11ff138bdeb2e30163bd2af3379f893aa4ac114d
parent4f9bfbbb402ab2d81834bf62bf671c686d81d686
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