summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/google
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-08-20 12:11:44 +0300
committerDavid S. Miller <davem@davemloft.net>2019-08-21 20:50:26 -0700
commitcc07db5a5b100bc8eaab5097a23d72f858979750 (patch)
tree0991f40251afbb04428d2d0e04ff1e2307a98a0f /drivers/net/ethernet/google
parent0f404bbdaf1624f4d25dd67da7ff85eab005beac (diff)
downloadlinux-cc07db5a5b100bc8eaab5097a23d72f858979750.tar.gz
linux-cc07db5a5b100bc8eaab5097a23d72f858979750.tar.bz2
linux-cc07db5a5b100bc8eaab5097a23d72f858979750.zip
gve: Copy and paste bug in gve_get_stats()
There is a copy and paste error so we have "rx" where "tx" was intended in the priv->tx[] array. Fixes: f5cedc84a30d ("gve: Add transmit and receive support") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Catherine Sullivan <csully@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/google')
-rw-r--r--drivers/net/ethernet/google/gve/gve_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/google/gve/gve_main.c b/drivers/net/ethernet/google/gve/gve_main.c
index 497298752381..aca95f64bde8 100644
--- a/drivers/net/ethernet/google/gve/gve_main.c
+++ b/drivers/net/ethernet/google/gve/gve_main.c
@@ -50,7 +50,7 @@ static void gve_get_stats(struct net_device *dev, struct rtnl_link_stats64 *s)
u64_stats_fetch_begin(&priv->tx[ring].statss);
s->tx_packets += priv->tx[ring].pkt_done;
s->tx_bytes += priv->tx[ring].bytes_done;
- } while (u64_stats_fetch_retry(&priv->rx[ring].statss,
+ } while (u64_stats_fetch_retry(&priv->tx[ring].statss,
start));
}
}