lkml.org 
[lkml]   [2021]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.14 093/849] vmxnet3: do not stop tx queues after netif_device_detach()
    Date
    From: Dongli Zhang <dongli.zhang@oracle.com>

    [ 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>
    ---
    drivers/net/vmxnet3/vmxnet3_drv.c | 1 -
    1 file changed, 1 deletion(-)

    diff --git a/drivers/net/vmxnet3/vmxnet3_drv.c b/drivers/net/vmxnet3/vmxnet3_drv.c
    index 6e87f1fc4874a..ceecee4081384 100644
    --- a/drivers/net/vmxnet3/vmxnet3_drv.c
    +++ b/drivers/net/vmxnet3/vmxnet3_drv.c
    @@ -3749,7 +3749,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;
    --
    2.33.0


    \
     
     \ /
      Last update: 2021-11-15 22:39    [W:5.534 / U:0.128 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site