Skip to content

Commit

Permalink
NTB: Rate limit ntb_qp_link_work
Browse files Browse the repository at this point in the history
When the ntb transport is connecting and waiting for the peer, the debug
console receives lots of debug level messages about the remote qp link
status being down.  Rate limit those messages.

Signed-off-by: Allen Hubbe <Allen.Hubbe@emc.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
  • Loading branch information
Allen Hubbe authored and Jon Mason committed Jul 4, 2015
1 parent 578b881 commit 2876228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ntb/ntb_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ static void ntb_qp_link_work(struct work_struct *work)

/* query remote spad for qp ready bits */
ntb_peer_spad_read(nt->ndev, QP_LINKS);
dev_dbg(&pdev->dev, "Remote QP link status = %x\n", val);
dev_dbg_ratelimited(&pdev->dev, "Remote QP link status = %x\n", val);

/* See if the remote side is up */
if (val & BIT(qp->qp_num)) {
Expand Down

0 comments on commit 2876228

Please sign in to comment.