]> 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)
commitc22f4e9324497f3c7b7a7b8a3b2f9a34129b4316
tree20e9755f471ffc4970d92356792bc017e4b1be33
parentb4c9ef06c9fb703b7e6e41731849986dd58a71aa
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: 89427b172e06 ("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