]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[IPOIB] Deregister the addresses from the SM when the IPOIB port goes down.
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 24 May 2006 06:32:21 +0000 (06:32 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 24 May 2006 06:32:21 +0000 (06:32 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@363 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/ulp/ipoib/kernel/ipoib_port.c

index e906cd0aecd1f553481aacd2f71494b4981d6805..2f900b4dcb4adff59113aefd7aceb7b48a049bad 100644 (file)
@@ -4913,6 +4913,10 @@ ipoib_port_down(
 \r
        /* Reset all endpoints so we don't flush our ARP cache. */\r
        __endpt_mgr_reset_all( p_port );\r
+\r
+       cl_obj_lock( &p_port->p_adapter->obj );\r
+       ipoib_dereg_addrs( p_port->p_adapter );\r
+       cl_obj_unlock( &p_port->p_adapter->obj );\r
        \r
        IPOIB_EXIT( IPOIB_DBG_INIT );\r
 }\r