Loading
net/hinic: Fix VF has a low probability of network failure on the virtual machine
driver inclusion category: bugfix bugzilla: 4472 ----------------------------------------------------------------------- VF does not switch interrupts on the virtual machine. If the hardware sends the entire tx queue packets between tx_poll processed all the packets and calling napi_complete, it will cause the hardware to no longer report the interrupt, napi will not be called again, and driver unable free up tx resources. Eventually, the queue is full and packets cannot be sent. By calling tx_poll again before napi_complete, to ensure that the queue resources can be released in time. When clearing queue resources during ifconfig down processing, determine whether the packet has been sent more accurately by judging hardware CI and software PI. Signed-off-by:Chiqijun <chiqijun@huawei.com> Reviewed-by:
Zengweiliang <zengweiliang.zengweiliang@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>