Skip to content

Commit

Permalink
net/mlx5e: Reorder update stats
Browse files Browse the repository at this point in the history
Reorder update stats flow to update most important counters last,
to get more accurate results.

New update order:
	- PCIe counters
	- Port counters
	- Vport counters
	- Queue counters
	- Software counters

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Gal Pressman <galp@mellanox.com>
  • Loading branch information
Saeed Mahameed committed Jan 19, 2017
1 parent 701052c commit 3dd69e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/ethernet/mellanox/mlx5/core/en_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,11 @@ static void mlx5e_update_pcie_counters(struct mlx5e_priv *priv)

void mlx5e_update_stats(struct mlx5e_priv *priv)
{
mlx5e_update_q_counter(priv);
mlx5e_update_vport_counters(priv);
mlx5e_update_pcie_counters(priv);
mlx5e_update_pport_counters(priv);
mlx5e_update_vport_counters(priv);
mlx5e_update_q_counter(priv);
mlx5e_update_sw_counters(priv);
mlx5e_update_pcie_counters(priv);
}

void mlx5e_update_stats_work(struct work_struct *work)
Expand Down

0 comments on commit 3dd69e3

Please sign in to comment.