]> 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)
commit2f61353cd2f789a4229b6f5c1c24a40a613357bb
tree20e9755f471ffc4970d92356792bc017e4b1be33
parent74afa30630976861a1308c5ec93391f8b037a2ae
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: b90fcc5bd904 ("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