[ibal] Allow cm to send a lap request after a failed (by timeout) lap request.
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 15 Oct 2009 13:44:15 +0000 (13:44 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 15 Oct 2009 13:44:15 +0000 (13:44 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2486 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/kernel/al_cm_cep.c

index 9a2f690..49fa417 100644 (file)
@@ -2290,7 +2290,15 @@ __cep_mad_send_cb(
                        __format_drep( p_cep, NULL, 0, &p_cep->mads.drep );\r
                        p_cep->state = CEP_STATE_TIMEWAIT;\r
                        __insert_timewait( p_cep );\r
+                       break;\r
 \r
+               case CEP_STATE_LAP_SENT:\r
+                       /*\r
+                        * Before CEP was sent, we have been in CEP_STATE_ESTABLISHED as we\r
+                        * failed to send, we return to that state.\r
+                        */\r
+                       p_cep->state = CEP_STATE_ESTABLISHED;\r
+                       break;\r
                default:\r
                        break;\r
                }\r