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)
commitcdeef2b1528b6faa7a7e60de7a56c48bc6838ae6
tree345227f2376429f622d50f6b76ce1ff4747d86c9
parent519a0bf5b20c370fb05ee05ea6c00e1377c13229
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: ed56c5193ad8 ("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