]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Use non-delayed work for update stats
authorSaeed Mahameed <saeedm@mellanox.com>
Wed, 12 Sep 2018 06:45:33 +0000 (23:45 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 11 Oct 2018 00:58:15 +0000 (17:58 -0700)
commitd989f21e3287e5a6b067c4db0ffc84cdc17e061d
tree345227f2376429f622d50f6b76ce1ff4747d86c9
parent5416a55cd26d73e6afcede34fa162754825d3ca1
net/mlx5e: Use non-delayed work for update stats

Convert mlx5e update stats work to a normal work structure, since it is
never used delayed.

Add a helper function to queue update stats work on demand which checks
for some conditions and reduce code duplication to have a better
abstraction.

Fixes: 53830053aad7 ("net/mlx5e: Update NIC HW stats on demand only")
Signed-off-by: Saeed Mahameed <saeedm@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