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

John Kingman kingman at austin.rr.com
Wed Sep 21 14:00:10 PDT 2005


On Wed, 21 Sep 2005, Sean Hefty wrote:

> 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.

Am I misreading o12-8?

John



More information about the general mailing list