[SRP] update connection state in case of rearm failure.
authorsleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 29 Oct 2006 11:30:46 +0000 (11:30 +0000)
committersleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 29 Oct 2006 11:30:46 +0000 (11:30 +0000)
Submitted by Estrin Alex (aestrin@silverstorm.com)

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@531 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/srp/kernel/srp_connection.c

index cefa953..6ab43b6 100644 (file)
@@ -555,7 +555,8 @@ rej:
                        ("ib_rearm_cq() for send cq failed!, status 0x%x", status) );\r
 \r
                // TODO: Kill session and inform port driver link down storportnotification\r
-               return;\r
+               p_connection->state = SRP_CONNECT_FAILURE;\r
+               goto exit;\r
        }\r
 \r
        status = p_ifc->rearm_cq( p_connection->h_recv_cq, FALSE );\r
@@ -565,7 +566,7 @@ rej:
                        ("ib_rearm_cq() for recv failed!, status 0x%x", status) );\r
 \r
                // TODO: Kill session and inform port driver link down storportnotification\r
-               return;\r
+               p_connection->state = SRP_CONNECT_FAILURE;\r
        }\r
 \r
 \r
@@ -914,3 +915,5 @@ srp_free_connection(
        SRP_EXIT( SRP_DBG_PNP );\r
 }\r
 \r
+\r
+\r