diff options
author | Tao Liu <xliutaox@google.com> | 2021-10-11 18:36:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-12 01:25:35 +0300 |
commit | 61d72c7e486b63340f1fadcf3bed4cae98f03d9b (patch) | |
tree | 77122eb48073115bd5d77b0bb2568bfe58382ed0 /drivers/net/ethernet/google/gve/gve_ethtool.c | |
parent | 58401b2a46e7d5090873e7725ac786685475d638 (diff) | |
download | linux-61d72c7e486b63340f1fadcf3bed4cae98f03d9b.tar.xz |
gve: Do lazy cleanup in TX path
When TX queue is full, attemt to process enough TX completions
to avoid stalling the queue.
Fixes: f5cedc84a30d2 ("gve: Add transmit and receive support")
Signed-off-by: Tao Liu <xliutaox@google.com>
Signed-off-by: Catherine Sullivan <csully@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/google/gve/gve_ethtool.c')
-rw-r--r-- | drivers/net/ethernet/google/gve/gve_ethtool.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/google/gve/gve_ethtool.c b/drivers/net/ethernet/google/gve/gve_ethtool.c index 716e6240305d..618a3e1d858e 100644 --- a/drivers/net/ethernet/google/gve/gve_ethtool.c +++ b/drivers/net/ethernet/google/gve/gve_ethtool.c @@ -330,8 +330,7 @@ gve_get_ethtool_stats(struct net_device *netdev, data[i++] = tmp_tx_bytes; data[i++] = tx->wake_queue; data[i++] = tx->stop_queue; - data[i++] = be32_to_cpu(gve_tx_load_event_counter(priv, - tx)); + data[i++] = gve_tx_load_event_counter(priv, tx); data[i++] = tx->dma_mapping_error; /* stats from NIC */ if (skip_nic_stats) { |