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)
commit121fcdc84d8240d4dfe1f737befd5814b12623ee
treee970baa71ac12712318198a881317a2702875977
parentcf678570d5a1022c4c4dbda7792f2a36f0b9fec0
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