net: hns3: fix tx timeout issue
mainline inclusion from mainline-v6.6-rc1 commit 61a1deac category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7YRUW CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=61a1deacc3d4fd3d57d7fda4d935f7f7503e8440 ---------------------------------------------------------------------- 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: 20d06ca2 ("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> Signed-off-by:
Jiantao Xiao <xiaojiantao1@h-partners.com>
Loading
Please sign in to comment