This minor patch resolves the event_handler comment and must be applied
on top of the previous NOSRQ patches.

Signed-off-by: Pradeep Satyanarayana <[EMAIL PROTECTED]>
---


--- a/linux-2.6.23-rc1/drivers/infiniband/ulp/ipoib/ipoib_cm.c  2007-08-20 
12:23:18.000000000 -0400
+++ b/linux-2.6.23-rc1/drivers/infiniband/ulp/ipoib/ipoib_cm.c  2007-08-20 
12:29:15.000000000 -0400
@@ -253,6 +253,7 @@ static struct ib_qp *ipoib_cm_create_rx_
 {
        struct ipoib_dev_priv *priv = netdev_priv(dev);
        struct ib_qp_init_attr attr = {
+               .event_handler = ipoib_cm_rx_event_handler,
                .send_cq = priv->cq, /* For drain WR */
                .recv_cq = priv->cq,
                .srq = priv->cm.srq,
@@ -263,11 +264,8 @@ static struct ib_qp *ipoib_cm_create_rx_
                .qp_type = IB_QPT_RC,
                .qp_context = p,
        };
-       if (!priv->cm.srq) {
+       if (!priv->cm.srq)
                attr.cap.max_recv_sge = IPOIB_CM_RX_SG;
-               attr.event_handler = NULL;
-       } else
-               attr.event_handler = ipoib_cm_rx_event_handler;
        return ib_create_qp(priv->pd, &attr);
 }
 

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to