]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Split SW group counters update function
authorEran Ben Elisha <eranbe@nvidia.com>
Tue, 1 Dec 2020 22:41:59 +0000 (14:41 -0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 8 Dec 2020 19:28:46 +0000 (11:28 -0800)
commit1054f3fa05f9d870ccea73db1492e353f1517c4a
treee081b9c34967fd7154564bb3102c73a23fe117fa
parent257c50dff66145d105d2d15a5dd0ae84de0946b1
net/mlx5e: Split SW group counters update function

SW group counter update function aggregates sw stats out of many
mlx5e_*_stats resides in a given mlx5e_channel_stats struct.
Split the function into a few helper functions.

This will be used later in the series to calculate specific
mlx5e_*_stats which are not defined inside mlx5e_channel_stats.

Signed-off-by: Eran Ben Elisha <eranbe@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c