Commit 39c7fc1c authored by Yonglong Liu's avatar Yonglong Liu
Browse files

net: hns3: fix not call nic_call_event() problem when reset failed

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7OPD3


CVE: NA

----------------------------

The variable reset_fail_cnt has moved into the struct rst_stats,
but in hclge_reset_end_it(), still using the old reset_fail_cnt,
so when reset fail, the reset_fail_cnt is always 0, and will not
call nic_call_event() to notify who cares about this event.

This patch use the correct variable rst_stats.reset_fail_cnt to
fix the problem.

Fixes: bc70c292 ("net: hns3: add some DFX info for reset issue")
Signed-off-by: default avatarYonglong Liu <liuyonglong@huawei.com>
parent 8a366b3d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment