summaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc
diff options
context:
space:
mode:
authorSteve Hodgson <shodgson@solarflare.com>2008-06-09 20:34:32 +0200
committerJeff Garzik <jgarzik@redhat.com>2008-06-11 00:20:21 +0200
commit23bdfdd388723b8213f597743b1d4aba0d62de9c (patch)
tree6c9d0d52f338a943d4482b83cb81f19ef318c3c7 /drivers/net/sfc
parentadd missing lance_* exports (diff)
downloadlinux-23bdfdd388723b8213f597743b1d4aba0d62de9c.tar.xz
linux-23bdfdd388723b8213f597743b1d4aba0d62de9c.zip
sfc: Recover from RX queue flush failure
RX queue flush can fail if traffic continues to arrive. Recover by performing an invisible reset. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/sfc')
-rw-r--r--drivers/net/sfc/falcon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/sfc/falcon.c b/drivers/net/sfc/falcon.c
index d3f749c72d41..790db89db345 100644
--- a/drivers/net/sfc/falcon.c
+++ b/drivers/net/sfc/falcon.c
@@ -733,8 +733,10 @@ void falcon_fini_rx(struct efx_rx_queue *rx_queue)
continue;
break;
}
- if (rc)
+ if (rc) {
EFX_ERR(efx, "failed to flush rx queue %d\n", rx_queue->queue);
+ efx_schedule_reset(efx, RESET_TYPE_INVISIBLE);
+ }
/* Remove RX descriptor ring from card */
EFX_ZERO_OWORD(rx_desc_ptr);