]> 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)
commit68eff62b3939c9ffac17b737241ed965ef18c9f3
tree4676038c45b010a4ae7e67373a110566afb155c7
parent1a31ad3aae60333b02b393417c664c8fee7768ec
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: 22c0e2ce21dd ("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