]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 3 Feb 2022 09:28:54 +0000 (10:28 +0100)
commit5ed5f89e38522d327bea46a8083a2878f526c018
tree2f2246d9cd92ab5610a2f5f89409b27decddfa6b
parent83fd7e6e648b25a9260cdd556e8419eaa38ce8f2
net: hns3: handle empty unknown interrupt for VF

BugLink: https://bugs.launchpad.net/bugs/1959879
[ 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: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c