diff options
author | Dotan Barak <dotanb@dev.mellanox.co.il> | 2012-07-11 11:39:27 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-07-11 12:22:57 -0400 |
commit | 9bbeb6663ea2f069bd3bb6387fe7a824def21064 (patch) | |
tree | bc6ec38217b8d85b695c3b800422198199772236 /drivers/infiniband/hw | |
parent | 6887a4131da3adaab011613776d865f4bcfb5678 (diff) |
IB/mthca: Warning about event for non-existent QPs should show event 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>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_qp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_qp.c b/drivers/infiniband/hw/mthca/mthca_qp.c index 9601049e14d0..c3074a1d34ed 100644 --- a/drivers/infiniband/hw/mthca/mthca_qp.c +++ b/drivers/infiniband/hw/mthca/mthca_qp.c | |||
@@ -247,7 +247,8 @@ void mthca_qp_event(struct mthca_dev *dev, u32 qpn, | |||
247 | spin_unlock(&dev->qp_table.lock); | 247 | spin_unlock(&dev->qp_table.lock); |
248 | 248 | ||
249 | if (!qp) { | 249 | if (!qp) { |
250 | mthca_warn(dev, "Async event for bogus QP %08x\n", qpn); | 250 | mthca_warn(dev, "Async event %d for bogus QP %08x\n", |
251 | event_type, qpn); | ||
251 | return; | 252 | return; |
252 | } | 253 | } |
253 | 254 | ||