From patchwork Fri Oct 30 20:06:20 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Khapyorsky X-Patchwork-Id: 56696 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9UK4MFm020661 for ; Fri, 30 Oct 2009 20:04:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932465AbZJ3UEQ (ORCPT ); Fri, 30 Oct 2009 16:04:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932541AbZJ3UEQ (ORCPT ); Fri, 30 Oct 2009 16:04:16 -0400 Received: from mail-bw0-f227.google.com ([209.85.218.227]:62449 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932465AbZJ3UEP (ORCPT ); Fri, 30 Oct 2009 16:04:15 -0400 Received: by bwz27 with SMTP id 27so3988285bwz.21 for ; Fri, 30 Oct 2009 13:04:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:date:from:to :cc:subject:message-id:references:mime-version:content-type :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=IujhGvtWrUSPTD75knmUy5t4RK0yh/Jzan8GQAhuVzM=; b=O/kwysuOJ6zHn5g0+ZaDp/Ff8q98teQkM1ElKiC/ISSW3xAT6w/2uJQ4Xv6twhd9bs Bb/61OvKRfFHzgmk107TG0jCJbDhxPd+q2EYGr+hYPE29p/BPcHVqdAG5eEK7pxmz8kj 42+duHj+2ecNHoF78DWjgOsdusb0VIs1/o1lc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; b=Rdlakn+lsGdeOYIaEfZnJUL9lm30L+uKVHI4RyRc2uILtjIcEdyQjSFOtMAfxIajvy wMy9g3ZsTmJJe9NQk7Baxn+A44ip7z4RsbmlZC+WTN4lz/Z3T0tX8R1Sd0ZcuQbA9M4s YN1/eaktAlFEBagRN2u//Y9OWaRL8BtOHiFoc= Received: by 10.103.125.37 with SMTP id c37mr814155mun.69.1256933058659; Fri, 30 Oct 2009 13:04:18 -0700 (PDT) Received: from me.localdomain (85.64.35.106.dynamic.barak-online.net [85.64.35.106]) by mx.google.com with ESMTPS id u9sm915680muf.1.2009.10.30.13.04.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 30 Oct 2009 13:04:15 -0700 (PDT) Received: by me.localdomain (Postfix, from userid 1000) id C362211F85; Fri, 30 Oct 2009 22:06:20 +0200 (IST) Date: Fri, 30 Oct 2009 22:06:20 +0200 From: Sasha Khapyorsky To: Hal Rosenstock Cc: linux-rdma@vger.kernel.org Subject: Re: [PATCH] opensm/mcast_tbl: set max_mlid_ho as actually configured mlid Message-ID: <20091030200620.GB5829@me> References: <4AEAEA86.8080309@systemfabricworks.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/opensm/opensm/osm_mcast_tbl.c b/opensm/opensm/osm_mcast_tbl.c index 0a45904..a599e56 100644 --- a/opensm/opensm/osm_mcast_tbl.c +++ b/opensm/opensm/osm_mcast_tbl.c @@ -245,8 +245,8 @@ void osm_mcast_tbl_clear_mlid(IN osm_mcast_tbl_t * p_tbl, IN uint16_t mlid_ho) CL_ASSERT(p_tbl); CL_ASSERT(mlid_ho >= IB_LID_MCAST_START_HO); - if (p_tbl->p_mask_tbl && mlid_ho <= p_tbl->max_mlid_ho) { - mlid_offset = mlid_ho - IB_LID_MCAST_START_HO; + mlid_offset = mlid_ho - IB_LID_MCAST_START_HO; + if (p_tbl->p_mask_tbl && mlid_offset < p_tbl->mft_depth) { for (i = 0; i <= p_tbl->max_position; i++) (*p_tbl->p_mask_tbl)[mlid_offset][i] = 0; }