From: Dotan Barak <dot...@dev.mellanox.co.il>

Events received for non-existent QPs should generate a warning along
with the event type which was received.

Signed-off-by: Dotan Barak <dot...@dev.mellanox.co.il>
Reviewed-by: Jack Morgenstein <ja...@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerl...@mellanox.com>
---
 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 9601049..7569435 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,
        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",
+                         (int) event_type, qpn);
                return;
        }
 
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to