]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Use monitor counters for update stats
authorEyal Davidovich <eyald@mellanox.com>
Sat, 20 Oct 2018 13:18:00 +0000 (16:18 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 11 Dec 2018 22:52:20 +0000 (14:52 -0800)
commit5c7e8bbb025726f9cb9b2bc050509a94262426f8
treeea40d9a9400cf75a7a4d7d1ad7d5ef9856362141
parent2f8bc4917a86f4504f85f0e24d67d17bd2a9bfc1
net/mlx5e: Use monitor counters for update stats

- Adding new notifier block (struct mlx5_nb) monitor_counters_nb
  for handeling MONITOR_COUNTER new event type.
- Adding work queue element: monitor_counters_work for re-arm and
  update stats.
- We re-queue the update stat work, only when working over firmware
  that doesn't support the monitored counters.

Signed-off-by: Eyal Davidovich <eyald@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c