]> asedeno.scripts.mit.edu Git - linux.git/commit
net/mlx5e: Update NIC HW stats on demand only
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 24 May 2018 01:26:09 +0000 (18:26 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 28 Jun 2018 21:44:38 +0000 (14:44 -0700)
commited56c5193ad89d1097cdbdc87abeb062e03a06eb
tree74a2f39e78a6f18399097c9ceee25f1b316e4a3d
parent2ad9ecdbe7d482867000d3da7cbccc63689a7f70
net/mlx5e: Update NIC HW stats on demand only

Disable periodic stats update background thread and update stats in
background on demand when ndo_get_stats is called.

Having a background thread running in the driver all the time is bad for
power consumption and normally a user space daemon will query the stats
once every specific interval, so ideally the background thread and its
interval can be done in user space..

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c