[MTHCA] fix bug : user level multicast
authorsleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 19 Nov 2006 12:45:49 +0000 (12:45 +0000)
committersleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 19 Nov 2006 12:45:49 +0000 (12:45 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@544 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mthca/kernel/hca_mcast.c

index 8ded417..f309577 100644 (file)
@@ -147,18 +147,13 @@ mlnx_detach_mcast (
                *(uint64_t*)&mcast_p->mcast_gid.raw[8] ));\r
        \r
        // detach\r
-       if( mcast_p->ib_qp_p->ucontext) {\r
-               //TODO: call uverbs\r
-       }\r
-       else {\r
-               err = ibv_detach_mcast( mcast_p->ib_qp_p, \r
-                       (union ib_gid *)&mcast_p->mcast_gid, mcast_p->mcast_lid );\r
-               if (err) {\r
-                       HCA_PRINT(TRACE_LEVEL_ERROR  ,HCA_DBG_SHIM  ,("ibv_detach_mcast failed (%d)\n", err));\r
-                       status = errno_to_iberr(err);\r
-                       goto err_detach_mcast;\r
-               }\r
-       }\r
+  err = ibv_detach_mcast( mcast_p->ib_qp_p, \r
+      (union ib_gid *)&mcast_p->mcast_gid, mcast_p->mcast_lid );\r
+  if (err) {\r
+    HCA_PRINT(TRACE_LEVEL_ERROR  ,HCA_DBG_SHIM  ,("ibv_detach_mcast failed (%d)\n", err));\r
+    status = errno_to_iberr(err);\r
+    goto err_detach_mcast;\r
+  }\r
 \r
        status = IB_SUCCESS;\r
 \r