]> git.dujemihanovic.xyz Git - linux.git/commitdiff
vmxnet3: do not stop tx queues after netif_device_detach()
authorDongli Zhang <dongli.zhang@oracle.com>
Tue, 26 Oct 2021 21:50:31 +0000 (14:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Oct 2021 11:51:17 +0000 (12:51 +0100)
The netif_device_detach() conditionally stops all tx queues if the queues
are running. There is no need to call netif_tx_stop_all_queues() again.

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_drv.c

index 142f70670f5c0accd4bd1ea64759f44e6ba1c58d..8799854bacb2951fa02b58c617abfad64dbcb334 100644 (file)
@@ -3833,7 +3833,6 @@ vmxnet3_suspend(struct device *device)
        vmxnet3_free_intr_resources(adapter);
 
        netif_device_detach(netdev);
-       netif_tx_stop_all_queues(netdev);
 
        /* Create wake-up filters. */
        pmConf = adapter->pm_conf;