]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: set dividual reset level for all RAS and MSI-X errors
authorWeihang Li <liweihang@hisilicon.com>
Sun, 14 Apr 2019 01:47:43 +0000 (09:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Apr 2019 20:47:35 +0000 (13:47 -0700)
commite4f931721c76f6cf3aaa22640e96597be324f150
tree8b94e4ef0a4d8d6e6c215c4d772df615d78a3b42
parent79fc2027891f197ac8edd2fa3f98df8696a04b11
net: hns3: set dividual reset level for all RAS and MSI-X errors

According to hardware description, reset level that should be
triggered are not consistent in a module. For example, in SSU
common errors, the first two bits has no need to do reset,
but the other bits need global reset.

This patch sets separate reset level for all RAS and MSI-X
interrupts by adding a reset_lvel field in struct hclge_hw_error,
and fixes some incorrect reset level.

Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h