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)
commit2d7103c800add14d9ea3194a704130622474d54f
treeb2a018ffcb4a628b3086f051c69e868a8de016fd
parentcbe73aaeecaee5157f5db282da21f407ab41805f
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