[IBAL] Fix for cid on QP (for cm QPs).
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 20 Oct 2009 09:26:58 +0000 (09:26 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 20 Oct 2009 09:26:58 +0000 (09:26 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2490 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/kernel/al_proxy_cep.c

index 0e7580f..dc5ec8e 100644 (file)
@@ -208,6 +208,12 @@ proxy_cep_pre_req(
 \r
        p_ioctl->in.cm_req.h_qp = h_qp;\r
 \r
+       if(h_qp->type == IB_QPT_RELIABLE_CONN ||\r
+                       h_qp->type == IB_QPT_UNRELIABLE_CONN) \r
+               {\r
+                       ((al_conn_qp_t *)(h_qp))->cid = p_ioctl->in.cid;\r
+               }\r
+\r
        p_ioctl->out.status = al_cep_pre_req( p_context->h_al, p_ioctl->in.cid,\r
                &p_ioctl->in.cm_req, &p_ioctl->out.init );\r
 \r