[ofa-general] [PATCH 3 of 3] ipoib/cm: separate comp vectors to RX/TX

Michael S. Tsirkin mst at dev.mellanox.co.il
Thu May 3 03:49:55 PDT 2007


Enhance ipoib to use multiple completion vectors if available.
On mthca, this increases netperf BW by some 5% with
same or lower service demand.

Signed-off-by: Michael S. Tsirkin <mst at dev.mellanox.co.il>

---

Index: linux-2.6/drivers/infiniband/ulp/ipoib/ipoib_cm.c
===================================================================
--- linux-2.6.orig/drivers/infiniband/ulp/ipoib/ipoib_cm.c
+++ linux-2.6/drivers/infiniband/ulp/ipoib/ipoib_cm.c
@@ -793,7 +793,7 @@ static int ipoib_cm_tx_init(struct ipoib
 	}
 
 	p->cq = ib_create_cq(priv->ca, ipoib_cm_tx_completion, NULL, p,
-			     ipoib_sendq_size + 1, 0);
+			     ipoib_sendq_size + 1, priv->ca->num_comp_vectors > 1);
 	if (IS_ERR(p->cq)) {
 		ret = PTR_ERR(p->cq);
 		ipoib_warn(priv, "failed to allocate tx cq: %d\n", ret);

-- 
MST



More information about the general mailing list