diff options
author | Jian Shen <shenjian15@huawei.com> | 2023-09-06 15:20:12 +0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-09-07 11:08:03 +0200 |
commit | 61a1deacc3d4fd3d57d7fda4d935f7f7503e8440 (patch) | |
tree | 8c21205a38b4f0156133f27a9d54bc8497e6c9ec /drivers/sbus | |
parent | 08c6d8bae48c2c28f7017d7b61b5d5a1518ceb39 (diff) | |
download | linux-stable-61a1deacc3d4fd3d57d7fda4d935f7f7503e8440.tar.gz linux-stable-61a1deacc3d4fd3d57d7fda4d935f7f7503e8440.tar.bz2 linux-stable-61a1deacc3d4fd3d57d7fda4d935f7f7503e8440.zip |
net: hns3: fix tx timeout issue
Currently, the driver knocks the ring doorbell before updating
the ring->last_to_use in tx flow. if the hardware transmiting
packet and napi poll scheduling are fast enough, it may get
the old ring->last_to_use in drivers' napi poll.
In this case, the driver will think the tx is not completed, and
return directly without clear the flag __QUEUE_STATE_STACK_XOFF,
which may cause tx timeout.
Fixes: 20d06ca2679c ("net: hns3: optimize the tx clean process")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/sbus')
0 files changed, 0 insertions, 0 deletions