]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add NAPI statistics
authorTariq Toukan <tariqt@mellanox.com>
Wed, 2 May 2018 15:29:42 +0000 (18:29 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 28 Jun 2018 21:44:17 +0000 (14:44 -0700)
commit41e725d8ba34533061e45c407710ca289dfd84bb
treeb2a018ffcb4a628b3086f051c69e868a8de016fd
parentada2be815a3cf05095d5717270e672601d17120c
net/mlx5e: Add NAPI statistics

Add per-channel and global ethtool counters for NAPI.
This helps us monitor and analyze performance in general.

- ch[i]_poll:
  the number of times the channel's NAPI poll was invoked.

- ch[i]_arm:
  the number of times the channel's NAPI poll completed
  and armed the completion queues.

- ch[i]_aff_change:
  the number of times the channel's NAPI poll explicitly
  stopped execution on a cpu due to a change in affinity.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h
drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c