]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[IBAL] Fix Bug 214: Fix stale connection handling during REP processing.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 29 Aug 2006 20:35:06 +0000 (20:35 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 29 Aug 2006 20:35:06 +0000 (20:35 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@466 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/core/al/kernel/al_cm_cep.c

index dfaf819ecee3548600d32752c41c3a6586745be1..d627dbb3a4d25697675b5edb7be7ff3da7ef507c 100644 (file)
@@ -1433,6 +1433,12 @@ __rep_handler(
                        /* Roll back the state change. */\r
                        __reject_mad( p_port_cep, p_cep, p_mad, IB_REJ_STALE_CONN );\r
                        p_cep->state = old_state;\r
+                       /*\r
+                        * Clear the remote QPN and comm ID so that we don't try\r
+                        * to remove the CEP from those maps.\r
+                        */\r
+                       p_cep->remote_qpn = 0;\r
+                       p_cep->remote_comm_id = 0;\r
                        status = __process_stale( p_cep );\r
                }\r
                else\r