Commit b386cd36 authored by Michael Chan's avatar Michael Chan Committed by David S. Miller

bnxt_en: Call bnxt_ulp_stop() during tx timeout.

If we call bnxt_reset_task() due to tx timeout, we should call
bnxt_ulp_stop() to inform the RDMA driver about the error and the
impending reset.
Signed-off-by: default avatarMichael Chan <michael.chan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3c2217a6
...@@ -6495,8 +6495,14 @@ static void bnxt_reset_task(struct bnxt *bp, bool silent) ...@@ -6495,8 +6495,14 @@ static void bnxt_reset_task(struct bnxt *bp, bool silent)
if (!silent) if (!silent)
bnxt_dbg_dump_states(bp); bnxt_dbg_dump_states(bp);
if (netif_running(bp->dev)) { if (netif_running(bp->dev)) {
int rc;
if (!silent)
bnxt_ulp_stop(bp);
bnxt_close_nic(bp, false, false); bnxt_close_nic(bp, false, false);
bnxt_open_nic(bp, false, false); rc = bnxt_open_nic(bp, false, false);
if (!silent && !rc)
bnxt_ulp_start(bp);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment