[openib-general] [PATCH] [CM] set REJ local ID to 0 when responding to a REQ
Sean Hefty
mshefty at ichips.intel.com
Mon Feb 28 10:50:36 PST 2005
This patch sets the local comm ID to 0 when sending a REJ in response
to a REQ.
Signed-off-by: Sean Hefty <sean.hefty at intel.com>
Index: infiniband/core/cm.c
===================================================================
--- infiniband/core/cm.c (revision 1927)
+++ infiniband/core/cm.c (working copy)
@@ -1706,17 +1706,19 @@ static void cm_format_rej(struct cm_rej_
cm_format_mad_hdr(&rej_msg->hdr, cm_id_priv,
CM_REJ_ATTR_ID, CM_MSG_SEQUENCE_REQ);
- rej_msg->local_comm_id = cm_id_priv->id.local_id;
rej_msg->remote_comm_id = cm_id_priv->id.remote_id;
switch(cm_id_priv->id.state) {
case IB_CM_REQ_RCVD:
+ rej_msg->local_comm_id = 0;
cm_rej_set_msg_rejected(rej_msg, CM_MSG_RESPONSE_REQ);
break;
case IB_CM_REP_RCVD:
+ rej_msg->local_comm_id = cm_id_priv->id.local_id;
cm_rej_set_msg_rejected(rej_msg, CM_MSG_RESPONSE_REP);
break;
default:
+ rej_msg->local_comm_id = cm_id_priv->id.local_id;
cm_rej_set_msg_rejected(rej_msg, CM_MSG_RESPONSE_OTHER);
break;
}
More information about the general
mailing list