diff options
| author | Shiju Jose <shiju.jose@huawei.com> | 2019-02-23 17:22:18 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-05 22:34:31 +0200 |
| commit | dd8ab7cdbcda54e49a9d466e6c7fbed54a288762 (patch) | |
| tree | d021ee042ef48ebef6219df3a53eb2409514aa89 /drivers/net/ethernet/intel/e1000e/netdev.c | |
| parent | 660b8b783aed59c72aeac5bb0394983f74e90fab (diff) | |
| download | blackbird-obmc-linux-dd8ab7cdbcda54e49a9d466e6c7fbed54a288762.tar.gz blackbird-obmc-linux-dd8ab7cdbcda54e49a9d466e6c7fbed54a288762.zip | |
net: hns3: fix setting of the hns reset_type for rdma hw errors
[ Upstream commit eb4c2ccbad6c688be791e0c08640a40124558c03 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/intel/e1000e/netdev.c')
0 files changed, 0 insertions, 0 deletions

