]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 29 Mar 2022 07:13:50 +0000 (09:13 +0200)
commit0acc2c629e32f70b3b9a6e45dbdeb0d473e7b0db
tree69f67602bc8ad438030ffe97a5ad91c7983987e4
parentfdbe530fddd15331364dd923e2cb37d81931648a
net: hns3: handle empty unknown interrupt for VF

BugLink: https://bugs.launchpad.net/bugs/1962345
[ Upstream commit 2f61353cd2f789a4229b6f5c1c24a40a613357bb ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c