* [PATCH net-next] bnx2x: don't wait for Tx completion on recovery
@ 2016-03-13 19:21 Yuval Mintz
2016-03-16 23:23 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Yuval Mintz @ 2016-03-13 19:21 UTC (permalink / raw)
To: davem, netdev; +Cc: Yuval Mintz
When driver has hit a parity event, HW can no longer write to host memory.
As a result, Tx completions cannot be written to the host SB memory, and
waiting for Tx completions eventually timeout.
As driver is willing to delay as much as 1-2 seconds per Tx queue for its
draining and this delay is sequential, the time to recover might greatly
lengthen needlessly in case the recovery is done under multi-connection
traffic.
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
---
Hi Dave,
Wasn't sure whether to prepare this for net/net-next; But as it wasn't
a bug-fix by definition, I took the safer approach.
Please consider applying this to `net-next'.
Thanks,
Yuval
---
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
index a949783..0a9108c 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
@@ -3042,8 +3042,12 @@ int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode, bool keep_link)
bnx2x_save_statistics(bp);
}
- /* wait till consumers catch up with producers in all queues */
- bnx2x_drain_tx_queues(bp);
+ /* wait till consumers catch up with producers in all queues.
+ * If we're recovering, FW can't write to host so no reason
+ * to wait for the queues to complete all Tx.
+ */
+ if (unload_mode != UNLOAD_RECOVERY)
+ bnx2x_drain_tx_queues(bp);
/* if VF indicate to PF this function is going down (PF will delete sp
* elements and clear initializations
--
1.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] bnx2x: don't wait for Tx completion on recovery
2016-03-13 19:21 [PATCH net-next] bnx2x: don't wait for Tx completion on recovery Yuval Mintz
@ 2016-03-16 23:23 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-03-16 23:23 UTC (permalink / raw)
To: Yuval.Mintz; +Cc: netdev
From: Yuval Mintz <Yuval.Mintz@qlogic.com>
Date: Sun, 13 Mar 2016 21:21:48 +0200
> When driver has hit a parity event, HW can no longer write to host memory.
> As a result, Tx completions cannot be written to the host SB memory, and
> waiting for Tx completions eventually timeout.
> As driver is willing to delay as much as 1-2 seconds per Tx queue for its
> draining and this delay is sequential, the time to recover might greatly
> lengthen needlessly in case the recovery is done under multi-connection
> traffic.
>
> Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-16 23:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-13 19:21 [PATCH net-next] bnx2x: don't wait for Tx completion on recovery Yuval Mintz
2016-03-16 23:23 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).