[IPoIB] Deregister ATS records during adapter reset.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 7 Dec 2005 18:46:37 +0000 (18:46 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 7 Dec 2005 18:46:37 +0000 (18:46 +0000)
Signed-off-by: Yossi Leybovich (sleybo@mellanox.co.il)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@197 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib/kernel/ipoib_adapter.c
ulp/ipoib/kernel/ipoib_adapter.h
ulp/ipoib/kernel/ipoib_driver.c

index f7c811c..0fe0418 100644 (file)
@@ -768,6 +768,7 @@ __ipoib_pnp_dereg(
 \r
        /* Complete any pending OIDs. */\r
        ipoib_resume_oids( p_adapter );\r
+       ipoib_dereg_addrs( p_adapter );\r
 \r
        if( state != IB_PNP_PORT_REMOVE )\r
        {\r
index dbd891c..b2e7388 100644 (file)
@@ -394,4 +394,8 @@ void
 ipoib_reg_addrs(\r
        IN                              ipoib_adapter_t* const          p_adapter );\r
 \r
+void\r
+ipoib_dereg_addrs(\r
+       IN                              ipoib_adapter_t* const          p_adapter );\r
+\r
 #endif /* _IPOIB_ADAPTER_H_ */\r
index 7322a3b..8247b27 100644 (file)
@@ -217,10 +217,6 @@ static void
 __ipoib_ats_dereg_cb(\r
        IN                              void                                            *context );\r
 \r
-static void\r
-__ipoib_dereg_addrs(\r
-       IN                              ipoib_adapter_t* const          p_adapter );\r
-\r
 static NTSTATUS\r
 __ipoib_read_registry(\r
        IN                              UNICODE_STRING* const           p_registry_path );\r
@@ -1460,7 +1456,7 @@ ipoib_set_info(
                                        /*\r
                                         * Filter was non-zero, now zero.  Deregister IP addresses.\r
                                         */\r
-                                       __ipoib_dereg_addrs( p_adapter );\r
+                                       ipoib_dereg_addrs( p_adapter );\r
                                }\r
 \r
                                p_adapter->packet_filter = *(uint32_t*)info_buf;\r
@@ -1793,7 +1789,7 @@ ipoib_resume_oids(
                                /*\r
                                * Filter was non-zero, now zero.  Deregister IP addresses.\r
                                */\r
-                               __ipoib_dereg_addrs( p_adapter );\r
+                               ipoib_dereg_addrs( p_adapter );\r
                        }\r
                        cl_obj_unlock( &p_adapter->obj );\r
 \r
@@ -2236,8 +2232,8 @@ ipoib_reg_addrs(
 \r
 \r
 /* Object lock is held when this function is called. */\r
-static void\r
-__ipoib_dereg_addrs(\r
+void\r
+ipoib_dereg_addrs(\r
        IN                              ipoib_adapter_t* const          p_adapter )\r
 {\r
        net_address_item_t              *p_addr_item;\r