[ofa-general] [PATCH 1 of 2] mlx4_core: for events for non-existent QPs, print a message only in debug mode

Jack Morgenstein jackm at dev.mellanox.co.il
Wed Feb 27 06:48:07 PST 2008


mlx4: print message only in debug mode for events received for non-existent QPs

Events received for non-existent QPs are of interest only when debugging.
Print messages when this occurs only if running in debug mode.

In addition, add the event number to the printout.

Signed-off-by: Jack Morgenstein <jackm at dev.mellanox.co.il>

Index: infiniband/drivers/net/mlx4/qp.c
===================================================================
--- infiniband.orig/drivers/net/mlx4/qp.c	2008-01-28 13:07:57.000000000 +0200
+++ infiniband/drivers/net/mlx4/qp.c	2008-02-27 16:25:07.000000000 +0200
@@ -55,7 +55,8 @@ void mlx4_qp_event(struct mlx4_dev *dev,
 	spin_unlock(&qp_table->lock);
 
 	if (!qp) {
-		mlx4_warn(dev, "Async event for bogus QP %08x\n", qpn);
+		mlx4_dbg(dev, "Async event %d for bogus QP %08x\n",
+			 event_type, qpn);
 		return;
 	}
 



More information about the general mailing list