From patchwork Tue Oct 13 19:35:49 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 53512 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 n9DJlU5Y017199 for ; Tue, 13 Oct 2009 19:47:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934109AbZJMTfc (ORCPT ); Tue, 13 Oct 2009 15:35:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760886AbZJMTfc (ORCPT ); Tue, 13 Oct 2009 15:35:32 -0400 Received: from qmta02.westchester.pa.mail.comcast.net ([76.96.62.24]:42149 "EHLO QMTA02.westchester.pa.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753873AbZJMTfb (ORCPT ); Tue, 13 Oct 2009 15:35:31 -0400 Received: from OMTA09.westchester.pa.mail.comcast.net ([76.96.62.20]) by QMTA02.westchester.pa.mail.comcast.net with comcast id sBCU1c0050SCNGk52KavTM; Tue, 13 Oct 2009 19:34:56 +0000 Received: from hal.comcast.net ([75.69.247.31]) by OMTA09.westchester.pa.mail.comcast.net with comcast id sKav1c0020hNrtn3VKavxa; Tue, 13 Oct 2009 19:34:55 +0000 Received: from hal.comcast.net (localhost.localdomain [127.0.0.1]) by hal.comcast.net (8.14.3/8.14.3) with ESMTP id n9DJa256015023; Tue, 13 Oct 2009 15:36:07 -0400 Received: (from hnrose@localhost) by hal.comcast.net (8.14.3/8.14.3/Submit) id n9DJZn6D014993; Tue, 13 Oct 2009 15:35:49 -0400 Date: Tue, 13 Oct 2009 15:35:49 -0400 From: Hal Rosenstock To: sashak@voltaire.com Cc: linux-rdma@vger.kernel.org Subject: [PATCH] opensm/ib_types.h: Mask off client rereg bit in set_client_rereg Message-ID: <20091013193549.GA14990@comcast.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/opensm/include/iba/ib_types.h b/opensm/include/iba/ib_types.h index 935df43..fb4f79d 100644 --- a/opensm/include/iba/ib_types.h +++ b/opensm/include/iba/ib_types.h @@ -5315,7 +5315,7 @@ ib_port_info_set_client_rereg(IN ib_port_info_t * const p_pi, { CL_ASSERT(client_rereg <= 0x1); p_pi->subnet_timeout = - (uint8_t) (p_pi->subnet_timeout | (client_rereg << 7)); + (uint8_t) ((p_pi->subnet_timeout & 0x7F) | (client_rereg << 7)); } /*