]> git.baikalelectronics.ru Git - kernel.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)
commit53830053aad7d9f0384c142320932e60d0b3cc40
tree74a2f39e78a6f18399097c9ceee25f1b316e4a3d
parent374e7e5800eeeb2a034f37dc9f302d2abc086ae0
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