summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAndreas Fiedler <andreas.fiedler@gmx.net>2018-11-24 02:16:34 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-05 21:31:58 +0300
commitcfbee9e96d7916d3e228da3bd3340b7267c9eb8c (patch)
treeb7b9d5172c876d47ad9408fe4caa5f6961cdd789 /drivers
parentb24a813e792de507982b97a3dfdbe450ec2d50b1 (diff)
downloadlinux-cfbee9e96d7916d3e228da3bd3340b7267c9eb8c.tar.xz
net: gemini: Fix copy/paste error
[ Upstream commit 07093b76476903f820d83d56c3040e656fb4d9e3 ] 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> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/cortina/gemini.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cortina/gemini.c b/drivers/net/ethernet/cortina/gemini.c
index 1c9ad3630c77..dfd1ad0b1cb9 100644
--- a/drivers/net/ethernet/cortina/gemini.c
+++ b/drivers/net/ethernet/cortina/gemini.c
@@ -661,7 +661,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);
}
}