From patchwork Tue Jun 29 13:49:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Eli Dorfman (Voltaire)" X-Patchwork-Id: 108620 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o5TDSq4V015147 for ; Tue, 29 Jun 2010 13:31:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753598Ab0F2Nb3 (ORCPT ); Tue, 29 Jun 2010 09:31:29 -0400 Received: from fwil.voltaire.com ([193.47.165.2]:14907 "EHLO exil.voltaire.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753341Ab0F2Nb3 (ORCPT ); Tue, 29 Jun 2010 09:31:29 -0400 Received: from [172.25.1.69] ([172.25.1.69]) by exil.voltaire.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 29 Jun 2010 16:31:26 +0300 Message-ID: <4C29F9E5.6030905@gmail.com> Date: Tue, 29 Jun 2010 16:49:25 +0300 From: "Eli Dorfman (Voltaire)" User-Agent: Thunderbird 2.0.0.17 (X11/20080914) MIME-Version: 1.0 To: Sasha Khapyorsky CC: linux-rdma , Vladimir Koushnir Subject: [PATCH] opensm/osm_lid_mgr.c: Allow switch lids to be non LMC aligned X-OriginalArrivalTime: 29 Jun 2010 13:31:26.0455 (UTC) FILETIME=[5FC2B870:01CB178F] Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 29 Jun 2010 13:31:30 +0000 (UTC) diff --git a/opensm/opensm/osm_lid_mgr.c b/opensm/opensm/osm_lid_mgr.c index 97b1de6..5d0247a 100644 --- a/opensm/opensm/osm_lid_mgr.c +++ b/opensm/opensm/osm_lid_mgr.c @@ -563,10 +563,6 @@ static boolean_t lid_mgr_is_range_not_persistent(IN osm_lid_mgr_t * p_mgr, IN uint16_t num_lids) { uint16_t i; - uint8_t start_lid = (uint8_t) (1 << p_mgr->p_subn->opt.lmc); - - if (lid < start_lid) - return FALSE; for (i = lid; i < lid + num_lids; i++) if (p_mgr->used_lids[i])