]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit1a7f51240dfb5f1afa791a4e369a428337ce4f5f
treee081b9c34967fd7154564bb3102c73a23fe117fa
parent0b676aaecc25e9686d27658b56add5c024d54a7c
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