[openib-general] APM support in openib stack

Sean Hefty sean.hefty at intel.com
Tue Oct 24 21:20:09 PDT 2006


>but this function
>
>cm_init_qp_rts_attr(struct cm_id_private *cm_id_priv,
>                   struct ib_qp_attr *qp_attr,
>                   int *qp_attr_mask)
>
>does perform the state transition using
>if (cm_id_priv->alt_av.ah_attr.dlid) {
>            *qp_attr_mask |= IB_QP_PATH_MIG_STATE;
>            qp_attr->path_mig_state = IB_MIG_REARM;
>        }
>
>which works for me the first time I load path (using send REQ) and
>change state to RTS.

This routine only sets the qp attributes needed for the transition.  The user
must still call ib_modify_qp().  This was the compromise for not having the cm
modify the qp state; it tried to make it easy on the user.

- Sean




More information about the general mailing list