linux_dsm_epyc7002/drivers/net/ethernet/hisilicon/hns3/hns3pf
Shiju Jose eb4c2ccbad net: hns3: fix setting of the hns reset_type for rdma hw errors
Presently the hns reset_type for the roce errors is set
in the hclge_log_and_clear_rocee_ras_error function.
This function is also called to detect and clear roce errors
while enabling the rdma error interrupts. However there is no hns
reset requested for this case. This can cause issue of wrong
reset_type used with subsequent hns reset as the
reset_type set in the above case was not cleared.

This patch moves setting of hns reset_type for the roce errors from
hclge_log_and_clear_rocee_ras_error function
to hclge_handle_rocee_ras_error.

Fixes: 630ba007f4 ("net: hns3: add handling of RDMA RAS errors")
Reported-by: Huazhong Tan <tanhuazhong@huawei.com>
Reported-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: Shiju Jose <shiju.jose@huawei.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>
2019-02-24 20:27:50 -08:00
..
hclge_cmd.c net: hns3: uninitialize command queue while unloading PF driver 2019-02-21 16:29:05 -08:00
hclge_cmd.h net: hns3: enable VF VLAN filter for each VF when initializing 2019-02-24 20:27:50 -08:00
hclge_dcb.c net: hns3: only support tc 0 for VF 2019-01-30 14:50:03 -08:00
hclge_dcb.h net: hns3: Add SPDX tags to HNS3 PF driver 2018-07-21 08:44:23 -07:00
hclge_debugfs.c net: hns3: optimize the maximum TC macro 2019-02-02 08:24:08 -08:00
hclge_debugfs.h net: hns3: Add "dcb register" status information query function 2018-12-15 10:54:18 -08:00
hclge_err.c net: hns3: fix setting of the hns reset_type for rdma hw errors 2019-02-24 20:27:50 -08:00
hclge_err.h net: hns3: enable 8~11th bit of mac common msi-x error 2019-02-21 16:29:05 -08:00
hclge_main.c net: hns3: enable VF VLAN filter for each VF when initializing 2019-02-24 20:27:50 -08:00
hclge_main.h net: hns3: add support to config depth for tx|rx ring separately 2019-02-24 20:27:50 -08:00
hclge_mbx.c net: hns3: fix get VF RSS issue 2019-02-24 20:27:50 -08:00
hclge_mdio.c net: hns3: fix port info query issue for copper port 2019-02-21 16:29:04 -08:00
hclge_mdio.h net: hns3: Fix NULL deref when unloading driver 2019-01-30 14:50:03 -08:00
hclge_tm.c net: hns3: only support tc 0 for VF 2019-01-30 14:50:03 -08:00
hclge_tm.h net: hns3: do not return GE PFC setting err when initializing 2019-01-23 11:13:02 -08:00
Makefile net: hns3: Add "FD flow table" info query function 2018-11-23 17:28:59 -08:00