diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-08-20 05:11:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-21 23:50:26 -0400 |
commit | cc07db5a5b100bc8eaab5097a23d72f858979750 (patch) | |
tree | 0991f40251afbb04428d2d0e04ff1e2307a98a0f | |
parent | 0f404bbdaf1624f4d25dd67da7ff85eab005beac (diff) |
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>
-rw-r--r-- | drivers/net/ethernet/google/gve/gve_main.c | 2 |
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) | |||
50 | u64_stats_fetch_begin(&priv->tx[ring].statss); | 50 | u64_stats_fetch_begin(&priv->tx[ring].statss); |
51 | s->tx_packets += priv->tx[ring].pkt_done; | 51 | s->tx_packets += priv->tx[ring].pkt_done; |
52 | s->tx_bytes += priv->tx[ring].bytes_done; | 52 | s->tx_bytes += priv->tx[ring].bytes_done; |
53 | } while (u64_stats_fetch_retry(&priv->rx[ring].statss, | 53 | } while (u64_stats_fetch_retry(&priv->tx[ring].statss, |
54 | start)); | 54 | start)); |
55 | } | 55 | } |
56 | } | 56 | } |