[openib-general] [PATCH] [CM] CM DREQ's need the redirected qpn

Sean Hefty mshefty at ichips.intel.com
Wed Sep 21 12:28:21 PDT 2005


John Kingman wrote:
> Another piece of CM redirection.  If the remote CM has been redirected,
> need to send DREQs there too.  Tested with our target.
> 
> Signed-off-by: John Kingman <kingman at storagegear.com>
> 
> Index: cm.c
> ===================================================================
> --- cm.c	(revision 3502)
> +++ cm.c	(working copy)
> @@ -1699,7 +1699,7 @@ static void cm_format_dreq(struct cm_dre
>  			  cm_form_tid(cm_id_priv, CM_MSG_SEQUENCE_DREQ));
>  	dreq_msg->local_comm_id = cm_id_priv->id.local_id;
>  	dreq_msg->remote_comm_id = cm_id_priv->id.remote_id;
> -	cm_dreq_set_remote_qpn(dreq_msg, cm_id_priv->remote_qpn);
> +	cm_dreq_set_remote_qpn(dreq_msg, cm_id_priv->id.remote_cm_qpn);

The remote QPN in the DREQ is supposed to be the QPN of the connection, and not 
the CM's QP.  I think that the original code is correct.

- Sean



More information about the general mailing list