[openib-general] [PATCH] set CQ size for MAD layer

Sean Hefty mshefty at ichips.intel.com
Fri Sep 24 09:44:30 PDT 2004


This patch is for revision 880.  If QP0/1 traffic is not separated, the CQ size needs to double to prevent overruns.

- Sean

-- 
Index: access/ib_mad.c
===================================================================
--- access/ib_mad.c	(revision 880)
+++ access/ib_mad.c	(working copy)
@@ -1320,7 +1320,7 @@
 		port_priv->version[i] = NULL;
 	}
 
-	cq_size = IB_MAD_QP_SEND_SIZE + IB_MAD_QP_RECV_SIZE;
+	cq_size = (IB_MAD_QP_SEND_SIZE + IB_MAD_QP_RECV_SIZE) * 2;
 	port_priv->cq = ib_create_cq(port_priv->device,
 				     (ib_comp_handler) ib_mad_thread_completion_handler,
 				     NULL, port_priv, cq_size);



More information about the general mailing list