* [PATCH net] be2net: fix disabling TX in be_close()
@ 2013-08-22 6:53 Sathya Perla
2013-08-23 2:59 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Sathya Perla @ 2013-08-22 6:53 UTC (permalink / raw)
To: netdev
commit fba875591 ("disable TX in be_close()") disabled TX in be_close()
to protect be_xmit() from touching freed up queues in the AER recovery
flow. But, TX must be disabled *before* cleaning up TX completions in
the close() path, not after. This allows be_tx_compl_clean() to free up
all TX-req skbs that were notified to the HW.
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
---
Re-sending the patch with summary line of the commit referenced in
the change log.
drivers/net/ethernet/emulex/benet/be_main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c
index 181edb5..4559c35 100644
--- a/drivers/net/ethernet/emulex/benet/be_main.c
+++ b/drivers/net/ethernet/emulex/benet/be_main.c
@@ -2563,8 +2563,8 @@ static int be_close(struct net_device *netdev)
/* Wait for all pending tx completions to arrive so that
* all tx skbs are freed.
*/
- be_tx_compl_clean(adapter);
netif_tx_disable(netdev);
+ be_tx_compl_clean(adapter);
be_rx_qs_destroy(adapter);
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] be2net: fix disabling TX in be_close()
2013-08-22 6:53 [PATCH net] be2net: fix disabling TX in be_close() Sathya Perla
@ 2013-08-23 2:59 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-08-23 2:59 UTC (permalink / raw)
To: sathya.perla; +Cc: netdev
From: Sathya Perla <sathya.perla@emulex.com>
Date: Thu, 22 Aug 2013 12:23:41 +0530
> commit fba875591 ("disable TX in be_close()") disabled TX in be_close()
> to protect be_xmit() from touching freed up queues in the AER recovery
> flow. But, TX must be disabled *before* cleaning up TX completions in
> the close() path, not after. This allows be_tx_compl_clean() to free up
> all TX-req skbs that were notified to the HW.
>
> Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Applied and queued up for -stable.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-23 2:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-22 6:53 [PATCH net] be2net: fix disabling TX in be_close() Sathya Perla
2013-08-23 2:59 ` 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).