mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
be2net: fix disabling TX in be_close()
[ Upstream commit6e1f99757a] commitfba875591("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> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
40361e8fcc
commit
3d740e64f6
@@ -2561,8 +2561,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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user