]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add link down events counter
authorGal Pressman <galp@mellanox.com>
Sun, 24 Apr 2016 19:51:50 +0000 (22:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Apr 2016 19:58:01 +0000 (15:58 -0400)
commit23606278e673af0d9e96bdfb1781efa2601f4275
treee970baa71ac12712318198a881317a2702875977
parent9e06ca4362d18c4789ba9f0c98df74714c517b76
net/mlx5e: Add link down events counter

Expose link_down_events counter through ethtool -S.
This counter is read from PPort statistics, then proccessed and stored as
a special handling software counter.
This counter is stored along software counters since it is the only PPort
counter that it's size is not 64 bits.

Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h
include/linux/mlx5/device.h