]> 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)
commitcd4d8527904abfe0b166013e816b8eb177cdd906
treeea40d9a9400cf75a7a4d7d1ad7d5ef9856362141
parentb098a2be2e0153fd3e3c37cdc2a477c0612c3576
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