]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: handle empty unknown interrupt for VF
authorYufeng Mo <moyufeng@huawei.com>
Tue, 25 Jan 2022 07:03:12 +0000 (15:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jan 2022 13:08:05 +0000 (13:08 +0000)
commit0678ea65299c03cff79b4a14b76cd22097faa16d
tree20e9755f471ffc4970d92356792bc017e4b1be33
parente21ec5256e1ca26390f3fa19431dd343ab8fa314
net: hns3: handle empty unknown interrupt for VF

Since some interrupt states may be cleared by hardware, the driver
may receive an empty interrupt. Currently, the VF driver directly
disables the vector0 interrupt in this case. As a result, the VF
is unavailable. Therefore, the vector0 interrupt should be enabled
in this case.

Fixes: 9c1aaa1e9fbb ("net: hns3: add reset handling for VF when doing Core/Global/IMP reset")
Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c