Skip to content

Commit

Permalink
qed: Avoid db_recovery during recovery
Browse files Browse the repository at this point in the history
Avoid calling the qed doorbell recovery - qed_db_rec_handler()
during device recovery.

Signed-off-by: Ariel Elior <aelior@marvell.com>
Signed-off-by: Shai Malin <smalin@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Shai Malin authored and David S. Miller committed Aug 3, 2021
1 parent 07e1d6b commit 995c3d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/ethernet/qlogic/qed/qed_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1215,13 +1215,18 @@ static void qed_slowpath_task(struct work_struct *work)

if (test_and_clear_bit(QED_SLOWPATH_PERIODIC_DB_REC,
&hwfn->slowpath_task_flags)) {
/* skip qed_db_rec_handler during recovery/unload */
if (hwfn->cdev->recov_in_prog || !hwfn->slowpath_wq_active)
goto out;

qed_db_rec_handler(hwfn, ptt);
if (hwfn->periodic_db_rec_count--)
qed_slowpath_delayed_work(hwfn,
QED_SLOWPATH_PERIODIC_DB_REC,
QED_PERIODIC_DB_REC_INTERVAL);
}

out:
qed_ptt_release(hwfn, ptt);
}

Expand Down

0 comments on commit 995c3d4

Please sign in to comment.