]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
net: hns3: fix setting of the hns reset_type for rdma hw errors
authorShiju Jose <shiju.jose@huawei.com>
Sat, 23 Feb 2019 09:22:18 +0000 (17:22 +0800)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 12 Mar 2019 16:38:32 +0000 (13:38 -0300)
commit0784adf48441704e11ed8089e426d694269307aa
treeece7d946583c1af82be6d13305e78a8b06e2a078
parent57aad71f0902f21dfd3cd17331a17c62c3cf9795
net: hns3: fix setting of the hns reset_type for rdma hw errors

BugLink: https://bugs.launchpad.net/bugs/1819535
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: 630ba007f475 ("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>
(cherry picked from commit eb4c2ccbad6c688be791e0c08640a40124558c03)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c