projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb49a97
)
mlx4_en: going out of range of TX rings when reporting stats
author
Yevgeny Petrilin
<yevgenyp@mellanox.co.il>
Tue, 22 Mar 2011 22:37:23 +0000
(22:37 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 23 Mar 2011 19:24:15 +0000
(12:24 -0700)
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/en_port.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/mlx4/en_port.c
b/drivers/net/mlx4/en_port.c
index 7f5a3221e0c1dc8c8c9071808e18e9f552c11eca..a2b0bc4ada5d129841e6351e8bb626667350838a 100644
(file)
--- 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)
}
stats->tx_packets = 0;
stats->tx_bytes = 0;
- for (i = 0; i <
=
priv->tx_ring_num; i++) {
+ for (i = 0; i < priv->tx_ring_num; i++) {
stats->tx_packets += priv->tx_ring[i].packets;
stats->tx_bytes += priv->tx_ring[i].bytes;
}