summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/google/gve/gve_adminq.h
diff options
context:
space:
mode:
authorJohn Fraker <jfraker@google.com>2021-10-11 17:36:47 +0200
committerDavid S. Miller <davem@davemloft.net>2021-10-12 00:25:36 +0200
commit87a7f321bb6a45e54b7d6c90d032ee5636a6ad97 (patch)
treebde43329205c062d1ffb3cffc4c32feb20c08c77 /drivers/net/ethernet/google/gve/gve_adminq.h
parentgve: Do lazy cleanup in TX path (diff)
downloadlinux-87a7f321bb6a45e54b7d6c90d032ee5636a6ad97.tar.xz
linux-87a7f321bb6a45e54b7d6c90d032ee5636a6ad97.zip
gve: Recover from queue stall due to missed IRQ
Don't always reset the driver on a TX timeout. Attempt to recover by kicking the queue in case an IRQ was missed. Fixes: 9e5f7d26a4c08 ("gve: Add workqueue and reset support") Signed-off-by: John Fraker <jfraker@google.com> Signed-off-by: David Awogbemila <awogbemila@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/google/gve/gve_adminq.h')
-rw-r--r--drivers/net/ethernet/google/gve/gve_adminq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/google/gve/gve_adminq.h b/drivers/net/ethernet/google/gve/gve_adminq.h
index 47c3d8f313fc..3953f6f7a427 100644
--- a/drivers/net/ethernet/google/gve/gve_adminq.h
+++ b/drivers/net/ethernet/google/gve/gve_adminq.h
@@ -270,6 +270,7 @@ enum gve_stat_names {
TX_LAST_COMPLETION_PROCESSED = 5,
RX_NEXT_EXPECTED_SEQUENCE = 6,
RX_BUFFERS_POSTED = 7,
+ TX_TIMEOUT_CNT = 8,
// stats from NIC
RX_QUEUE_DROP_CNT = 65,
RX_NO_BUFFERS_POSTED = 66,