]> git.baikalelectronics.ru Git - kernel.git/commit
net-next/hinic: Fix a case of Tx Queue is Stopped forever
authorAviad Krawczyk <aviad.krawczyk@huawei.com>
Tue, 26 Sep 2017 18:11:33 +0000 (02:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Sep 2017 17:26:50 +0000 (10:26 -0700)
commitdd3ff6394c9184bdb83ae55d932c4835a95c7aa2
tree8464c77d3c01a5b2988dd425057f3df53859a0a3
parentb23b4dc0c9abff44526ad0735384902e6558abcc
net-next/hinic: Fix a case of Tx Queue is Stopped forever

Fix the following scenario:
1. tx_free_poll is running on cpu X
2. xmit function is running on cpu Y and fails to get sq wqe
3. tx_free_poll frees wqes on cpu X and checks the queue is not stopped
4. xmit function stops the queue after failed to get sq wqe
5. The queue is stopped forever

Signed-off-by: Aviad Krawczyk <aviad.krawczyk@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_tx.c