[ofa-general] IPoIB CM (NOSRQ) patch to resolve event_handler comment
Pradeep Satyanarayana
pradeeps at linux.vnet.ibm.com
Mon Aug 20 09:47:25 PDT 2007
This minor patch resolves the event_handler comment and must be applied
on top of the previous NOSRQ patches.
Signed-off-by: Pradeep Satyanarayana <pradeeps at linux.vnet.ibm.com>
---
--- 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);
}
More information about the general
mailing list