Skip to content

Commit

Permalink
net/hns3: fix reset event status
Browse files Browse the repository at this point in the history
[ upstream commit b59a0cbec866a8d4f7d1938b6826f7961c75c9fd ]

The function hns3_clear_reset_event is used to clear PF
reset status, The VF shouldn't use it.

This patch fixes it.

Fixes: 1eee1ea75c0e ("net/hns3: fix IMP or global reset")

Signed-off-by: Dengdui Huang <[email protected]>
Acked-by: Jie Hai <[email protected]>
  • Loading branch information
huangdengdui1 authored and kevintraynor committed Dec 5, 2023
1 parent 0dece28 commit 9023608
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/hns3/hns3_intr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2730,7 +2730,8 @@ hns3_reset_post(struct hns3_adapter *hns)
/* IMP will wait ready flag before reset */
hns3_notify_reset_ready(hw, false);
hns3_clear_reset_level(hw, &hw->reset.pending);
hns3_clear_reset_event(hw);
if (!hns->is_vf)
hns3_clear_reset_event(hw);
__atomic_store_n(&hns->hw.reset.resetting, 0, __ATOMIC_RELAXED);
hw->reset.attempts = 0;
hw->reset.stats.success_cnt++;
Expand Down

0 comments on commit 9023608

Please sign in to comment.