net/mlx4_en: Moderate ethtool callback to show more statistics
authorEran Ben Elisha <eranbe@mellanox.com>
Mon, 30 Mar 2015 14:45:26 +0000 (17:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2015 20:36:51 +0000 (16:36 -0400)
commita3333b35da1634f49aca541f2574a084221e2616
tree59f4a550f82fc8e8649436b78b42a3977027a99b
parent0b131561a7d639abb0a194d2d8fae839ce3b99e9
net/mlx4_en: Moderate ethtool callback to show more statistics

More packet statistics are now calculated and visible to the user via
ethtool:

- RX packet errors statistics.
- TX/RX drops are now calculated.
- TX multicast and broadcast statistics.
- RX/TX per priority bytes statistics.
- RX/TX no vlan packets and bytes statistics.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
drivers/net/ethernet/mellanox/mlx4/en_port.c
drivers/net/ethernet/mellanox/mlx4/mlx4_stats.h