]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: clear hardware resource when loading driver
authorYufeng Mo <moyufeng@huawei.com>
Thu, 26 Aug 2021 11:21:55 +0000 (19:21 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 Aug 2021 14:24:16 +0000 (07:24 -0700)
commitbd3dd6a5e8955c31ff04ab0d85861d2021131924
tree4676038c45b010a4ae7e67373a110566afb155c7
parent2cfad8fedcf18067af818542229ed8a86d38af6c
net: hns3: clear hardware resource when loading driver

If a PF is bonded to a virtual machine and the virtual machine exits
unexpectedly, some hardware resource cannot be cleared. In this case,
loading driver may cause exceptions. Therefore, the hardware resource
needs to be cleared when the driver is loaded.

Fixes: 575d84053c84 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c