[openib-general] [PATCH 1/2] [RFC] Implement resize of CQ

Sean Hefty mshefty at ichips.intel.com
Wed Nov 3 16:13:27 PST 2004


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




More information about the general mailing list