]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[IPoIB_NDIS6_CM]
authorAlex Naslednikov <alex@mellanox.co.il>
Tue, 21 Sep 2010 12:16:38 +0000 (12:16 +0000)
committerAlex Naslednikov <alex@mellanox.co.il>
Tue, 21 Sep 2010 12:16:38 +0000 (12:16 +0000)
Fixing a possible race when we get PORT_REMOVE before PORT_DOWN
Merged from MLNX_WinOF_2.1.25168

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

trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_adapter.cpp

index 322b59615398b70435fbddf5b79ef94810866a73..217b8df74b6ddf2b88a5d5faaa133922db74a1af 100644 (file)
@@ -600,6 +600,8 @@ static inline void __ipoib_get_down(
 \r
        NDIS_LINK_STATE         link_state;\r
        NDIS_STATUS_INDICATION  status_indication;\r
+\r
+       ipoib_port_down( p_adapter->p_port );\r
        \r
        link_state.Header.Revision = NDIS_LINK_STATE_REVISION_1;\r
        link_state.Header.Type = NDIS_OBJECT_TYPE_DEFAULT;\r
@@ -620,7 +622,7 @@ static inline void __ipoib_get_down(
        IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_INIT,\r
                ("Link DOWN!\n") );\r
 \r
-       ipoib_port_down( p_adapter->p_port );\r
+       \r
 }\r
 \r
 static ib_api_status_t\r