git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
334505b
)
mlx4: fix possible crash when clearing device statistics
author
Adrien Mazarguil
<adrien.mazarguil@6wind.com>
Mon, 23 Nov 2015 14:44:36 +0000
(15:44 +0100)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Tue, 24 Nov 2015 16:39:21 +0000
(17:39 +0100)
A typo causes TX stats indices to be retrieved from RX queues.
Fixes:
7fae69eeff13
("mlx4: new poll mode driver")
Reported-by: Nicolas Harnois <nicolas.harnois@6wind.com>
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4.c
patch
|
blob
|
history
diff --git
a/drivers/net/mlx4/mlx4.c
b/drivers/net/mlx4/mlx4.c
index
4198c04
..
d961a8a
100644
(file)
--- a/
drivers/net/mlx4/mlx4.c
+++ b/
drivers/net/mlx4/mlx4.c
@@
-3958,7
+3958,7
@@
mlx4_stats_reset(struct rte_eth_dev *dev)
for (i = 0; (i != priv->txqs_n); ++i) {
if ((*priv->txqs)[i] == NULL)
continue;
- idx = (*priv->
r
xqs)[i]->stats.idx;
+ idx = (*priv->
t
xqs)[i]->stats.idx;
(*priv->txqs)[i]->stats =
(struct mlx4_txq_stats){ .idx = idx };
}