]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 13 Jan 2022 17:41:53 +0000 (18:41 +0100)
BugLink: https://bugs.launchpad.net/bugs/1953387
[ Upstream commit 9159f102402a64ac85e676b75cc1f9c62c5b4b73 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/vmxnet3/vmxnet3_drv.c

index a06e6ab453f50a33b7657f3f2aa0f149cc538493..cf090f88dac0383ea1c64458dfeddeab62d58ec2 100644 (file)
@@ -3634,7 +3634,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;