summaryrefslogtreecommitdiffstats
path: root/drivers/net/ifb.c
diff options
context:
space:
mode:
authorPeng Li <lipeng321@huawei.com>2021-04-30 17:06:20 +0800
committerDavid S. Miller <davem@davemloft.net>2021-04-30 14:49:33 -0700
commitb416e872be06fdace3c36cf5210130509d0f0e72 (patch)
tree3fec2d3188517cdbf12f738161ca321497ce323b /drivers/net/ifb.c
parent905416f18fe74bdd4de91bf94ef5a790a36e4b99 (diff)
downloadlinux-b416e872be06fdace3c36cf5210130509d0f0e72.tar.bz2
net: hns3: use netif_tx_disable to stop the transmit queue
Currently, netif_tx_stop_all_queues() is used to ensure that the xmit is not running, but for the concurrent case it will not take effect, since netif_tx_stop_all_queues() just sets a flag without locking to indicate that the xmit queue(s) should not be run. So use netif_tx_disable() to replace netif_tx_stop_all_queues(), it takes the xmit queue lock while marking the queue stopped. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ifb.c')
0 files changed, 0 insertions, 0 deletions