[IPOIB] - clean the endpnt lists when port move to inactive state.
authorsleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 6 Sep 2006 04:58:20 +0000 (04:58 +0000)
committersleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 6 Sep 2006 04:58:20 +0000 (04:58 +0000)
- __port_create_bcast function use the IPOIB_DBG_INIT flag

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

ulp/ipoib/kernel/ipoib_port.c

index 14e73a6..32097c0 100644 (file)
@@ -4776,7 +4776,7 @@ done:
        {\r
                if( status != IB_CANCELED )\r
                        ipoib_set_inactive( p_port->p_adapter );\r
-\r
+                       __endpt_mgr_reset_all( p_port );\r
                KeSetEvent( &p_port->sa_event, EVENT_INCREMENT, FALSE );\r
        }\r
 \r
@@ -4898,7 +4898,7 @@ done:
        {\r
                if( status != IB_CANCELED )\r
                        ipoib_set_inactive( p_port->p_adapter );\r
-\r
+                       __endpt_mgr_reset_all( p_port );\r
                KeSetEvent( &p_port->sa_event, EVENT_INCREMENT, FALSE );\r
        }\r
 \r
@@ -4989,7 +4989,7 @@ __port_create_bcast(
        ib_api_status_t         status;\r
        ib_mcast_req_t          mcast_req;\r
 \r
-       IPOIB_ENTER( IPOIB_DBG_MCAST );\r
+       IPOIB_ENTER( IPOIB_DBG_INIT );\r
 \r
        /* Join the broadcast group. */\r
        cl_memclr( &mcast_req, sizeof(mcast_req) );\r
@@ -5036,7 +5036,7 @@ __port_create_bcast(
                        ("ib_join_mcast returned %s\n", \r
                        p_port->p_adapter->p_ifc->get_err_str( status )) );\r
        }\r
-       IPOIB_EXIT( IPOIB_DBG_MCAST );\r
+       IPOIB_EXIT( IPOIB_DBG_INIT );\r
        return status;\r
 }\r
 \r
@@ -5165,6 +5165,7 @@ __bcast_cb(
                if( status != IB_SUCCESS )\r
                {\r
                        ipoib_set_inactive( p_port->p_adapter );\r
+                       __endpt_mgr_reset_all( p_port );\r
                        KeSetEvent( &p_port->sa_event, EVENT_INCREMENT, FALSE );\r
                }\r
                ipoib_port_deref( p_port, ref_bcast_req_failed );\r