net: hns3: add vf fault detect support
authorJie Wang <wangjie125@huawei.com>
Sat, 7 Oct 2023 03:12:15 +0000 (11:12 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Oct 2023 20:24:55 +0000 (13:24 -0700)
commit8a45c4f9e15902e5c52d5c42cda6239bc473c7c8
tree33febc77a80ade8c09b24e3c10fdd471ba14fd2b
parentf1bc63aa6e114c526a3aed44f9f3a6e23c044d54
net: hns3: add vf fault detect support

Currently hns3 driver supports vf fault detect feature. Several ras caused
by VF resources don't need to do PF function reset for recovery. The driver
only needs to reset the specified VF.

So this patch adds process in ras module. New process will get detailed
information about ras and do the most correct measures based on these
accurate information.

Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Link: https://lore.kernel.org/r/20231007031215.1067758-3-shaojijie@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c