Krishna Kumar wrote:

        qp_info->qp = ib_create_qp(port_priv->pd, &qp_init_attr);
-       if (IS_ERR(qp_info->qp)) {
-               printk(KERN_ERR PFX "Couldn't create ib_mad QP%d\n",
-                      get_spl_qp_index(qp_type));
+       if (!IS_ERR(qp_info->qp)) {
+               struct ib_qp_attr       qp_attr;
+
+               ret = ib_query_qp(qp_info->qp, &qp_attr, 0, &qp_init_attr);

Note that the qp_init_attr parameter passed into ib_create_qp should return the actual size of the QP that was created. The call to ib_query_qp shouldn't be needed.


- Sean

_______________________________________________
openib-general mailing list
[EMAIL PROTECTED]
http://openib.org/mailman/listinfo/openib-general

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

Reply via email to