diff options
author | Eran Ben Elisha <eranbe@mellanox.com> | 2015-03-30 17:45:26 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-31 16:36:51 -0400 |
commit | a3333b35da1634f49aca541f2574a084221e2616 (patch) | |
tree | 59f4a550f82fc8e8649436b78b42a3977027a99b /drivers/net/ethernet/mellanox/mlx4/mlx4_stats.h | |
parent | 0b131561a7d639abb0a194d2d8fae839ce3b99e9 (diff) | |
download | op-kernel-dev-a3333b35da1634f49aca541f2574a084221e2616.zip op-kernel-dev-a3333b35da1634f49aca541f2574a084221e2616.tar.gz |
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/mlx4_stats.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/mlx4_stats.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4_stats.h b/drivers/net/ethernet/mellanox/mlx4/mlx4_stats.h index e193680..0055583 100644 --- a/drivers/net/ethernet/mellanox/mlx4/mlx4_stats.h +++ b/drivers/net/ethernet/mellanox/mlx4/mlx4_stats.h @@ -11,10 +11,16 @@ #define NUM_PRIORITY_STATS 2 struct mlx4_en_pkt_stats { - unsigned long broadcast; - unsigned long rx_prio[8]; - unsigned long tx_prio[8]; -#define NUM_PKT_STATS 17 + unsigned long rx_multicast_packets; + unsigned long rx_broadcast_packets; + unsigned long rx_jabbers; + unsigned long rx_in_range_length_error; + unsigned long rx_out_range_length_error; + unsigned long tx_multicast_packets; + unsigned long tx_broadcast_packets; + unsigned long rx_prio[NUM_PRIORITIES][NUM_PRIORITY_STATS]; + unsigned long tx_prio[NUM_PRIORITIES][NUM_PRIORITY_STATS]; +#define NUM_PKT_STATS 43 }; struct mlx4_en_port_stats { |