From 9eeb16ebb26675302831d82c6e87dbf98add2154 Mon Sep 17 00:00:00 2001 From: sleybo Date: Sun, 19 Nov 2006 12:45:49 +0000 Subject: [PATCH] [MTHCA] fix bug : user level multicast git-svn-id: svn://openib.tc.cornell.edu/gen1@544 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/hw/mthca/kernel/hca_mcast.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/trunk/hw/mthca/kernel/hca_mcast.c b/trunk/hw/mthca/kernel/hca_mcast.c index 8ded417f..f309577c 100644 --- a/trunk/hw/mthca/kernel/hca_mcast.c +++ b/trunk/hw/mthca/kernel/hca_mcast.c @@ -147,18 +147,13 @@ mlnx_detach_mcast ( *(uint64_t*)&mcast_p->mcast_gid.raw[8] )); // detach - if( mcast_p->ib_qp_p->ucontext) { - //TODO: call uverbs - } - else { - err = ibv_detach_mcast( mcast_p->ib_qp_p, - (union ib_gid *)&mcast_p->mcast_gid, mcast_p->mcast_lid ); - if (err) { - HCA_PRINT(TRACE_LEVEL_ERROR ,HCA_DBG_SHIM ,("ibv_detach_mcast failed (%d)\n", err)); - status = errno_to_iberr(err); - goto err_detach_mcast; - } - } + err = ibv_detach_mcast( mcast_p->ib_qp_p, + (union ib_gid *)&mcast_p->mcast_gid, mcast_p->mcast_lid ); + if (err) { + HCA_PRINT(TRACE_LEVEL_ERROR ,HCA_DBG_SHIM ,("ibv_detach_mcast failed (%d)\n", err)); + status = errno_to_iberr(err); + goto err_detach_mcast; + } status = IB_SUCCESS; -- 2.41.0