Skip to content

Commit

Permalink
IB/mthca: Warning about event for non-existent QPs should show event …
Browse files Browse the repository at this point in the history
…type

Events received for non-existent QPs should generate a warning that includes
the event type that was received.

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
  • Loading branch information
Dotan Barak authored and Roland Dreier committed Jul 11, 2012
1 parent 6887a41 commit 9bbeb66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/infiniband/hw/mthca/mthca_qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ void mthca_qp_event(struct mthca_dev *dev, u32 qpn,
spin_unlock(&dev->qp_table.lock);

if (!qp) {
mthca_warn(dev, "Async event for bogus QP %08x\n", qpn);
mthca_warn(dev, "Async event %d for bogus QP %08x\n",
event_type, qpn);
return;
}

Expand Down

0 comments on commit 9bbeb66

Please sign in to comment.