[IPoIB] Revert previous change of method for broadcast group query
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sat, 11 Mar 2006 01:34:34 +0000 (01:34 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sat, 11 Mar 2006 01:34:34 +0000 (01:34 +0000)
back to GETTABLE.

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

ulp/ipoib/kernel/ipoib_port.c

index 5a9955a..fe757a4 100644 (file)
@@ -4533,7 +4533,7 @@ __port_get_mcast(
 \r
        IPOIB_ENTER( IPOIB_DBG_MCAST );\r
 \r
-       info.method = IB_MAD_METHOD_GET;\r
+       info.method = IB_MAD_METHOD_GETTABLE;\r
        info.attr_id = IB_MAD_ATTR_MCMEMBER_RECORD;\r
        info.attr_size = sizeof(ib_member_rec_t);\r
        info.comp_mask = IB_MCR_COMPMASK_MGID;\r
@@ -4592,6 +4592,11 @@ __bcast_get_cb(
        switch( p_query_rec->status )\r
        {\r
        case IB_SUCCESS:\r
+               if( !p_query_rec->result_cnt )\r
+               {\r
+                       __port_create_bcast( p_port );\r
+                       break;\r
+               }\r
 #ifdef PR_102801\r
                p_mc_req = NULL;\r
                /* Loop through the records until we find one with the proper MGID. */\r