]> 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)
commit3a8154fc62260992cab4d988040c9432b7481ddd
treeb2a018ffcb4a628b3086f051c69e868a8de016fd
parenta0d396f754b41b9fc7e7f38c1708232c2362ef90
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