commit | cdeef2b1528b6faa7a7e60de7a56c48bc6838ae6 | [log] [tgz] |
---|---|---|
author | Saeed Mahameed <saeedm@mellanox.com> | Tue Sep 11 23:45:33 2018 -0700 |
committer | Saeed Mahameed <saeedm@mellanox.com> | Wed Oct 10 17:58:15 2018 -0700 |
tree | 345227f2376429f622d50f6b76ce1ff4747d86c9 | |
parent | 519a0bf5b20c370fb05ee05ea6c00e1377c13229 [diff] |
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>