diff mbox series

net: gemini: Fix copy/paste error

Message ID 20181123231634.5659-1-linus.walleij@linaro.org
State New
Headers show
Series net: gemini: Fix copy/paste error | expand

Commit Message

Linus Walleij Nov. 23, 2018, 11:16 p.m. UTC
From: Andreas Fiedler <andreas.fiedler@gmx.net>


The TX stats should be started with the tx_stats_syncp,
there seems to be a copy/paste error in the driver.

Signed-off-by: Andreas Fiedler <andreas.fiedler@gmx.net>

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

---
 drivers/net/ethernet/cortina/gemini.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.19.1

Comments

David Miller Nov. 24, 2018, 6:36 a.m. UTC | #1
From: Linus Walleij <linus.walleij@linaro.org>

Date: Sat, 24 Nov 2018 00:16:34 +0100

> From: Andreas Fiedler <andreas.fiedler@gmx.net>

> 

> The TX stats should be started with the tx_stats_syncp,

> there seems to be a copy/paste error in the driver.

> 

> Signed-off-by: Andreas Fiedler <andreas.fiedler@gmx.net>

> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>


Applied.
diff mbox series

Patch

diff --git a/drivers/net/ethernet/cortina/gemini.c b/drivers/net/ethernet/cortina/gemini.c
index ceec467f590d..949103db8a8a 100644
--- a/drivers/net/ethernet/cortina/gemini.c
+++ b/drivers/net/ethernet/cortina/gemini.c
@@ -660,7 +660,7 @@  static void gmac_clean_txq(struct net_device *netdev, struct gmac_txq *txq,
 
 			u64_stats_update_begin(&port->tx_stats_syncp);
 			port->tx_frag_stats[nfrags]++;
-			u64_stats_update_end(&port->ir_stats_syncp);
+			u64_stats_update_end(&port->tx_stats_syncp);
 		}
 	}