diff options
| author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2011-03-22 18:37:23 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2011-03-23 15:24:15 -0400 |
| commit | b6055006b26de15aaa66870809b3d63b334737ce (patch) | |
| tree | 420afed3af17d6a225ee98da1891315b21620cd3 | |
| parent | eb49a97363f020c1d7eef8bcd93865726b1fa11d (diff) | |
mlx4_en: going out of range of TX rings when reporting stats
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | drivers/net/mlx4/en_port.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx4/en_port.c b/drivers/net/mlx4/en_port.c index 7f5a3221e0c1..a2b0bc4ada5d 100644 --- a/drivers/net/mlx4/en_port.c +++ b/drivers/net/mlx4/en_port.c | |||
| @@ -206,7 +206,7 @@ int mlx4_en_DUMP_ETH_STATS(struct mlx4_en_dev *mdev, u8 port, u8 reset) | |||
| 206 | } | 206 | } |
| 207 | stats->tx_packets = 0; | 207 | stats->tx_packets = 0; |
| 208 | stats->tx_bytes = 0; | 208 | stats->tx_bytes = 0; |
| 209 | for (i = 0; i <= priv->tx_ring_num; i++) { | 209 | for (i = 0; i < priv->tx_ring_num; i++) { |
| 210 | stats->tx_packets += priv->tx_ring[i].packets; | 210 | stats->tx_packets += priv->tx_ring[i].packets; |
| 211 | stats->tx_bytes += priv->tx_ring[i].bytes; | 211 | stats->tx_bytes += priv->tx_ring[i].bytes; |
| 212 | } | 212 | } |
