From patchwork Tue Jul 30 15:13:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 2835736 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C7B859F7D6 for ; Tue, 30 Jul 2013 15:13:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1F8FD201D5 for ; Tue, 30 Jul 2013 15:13:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7161720157 for ; Tue, 30 Jul 2013 15:13:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753332Ab3G3PNK (ORCPT ); Tue, 30 Jul 2013 11:13:10 -0400 Received: from mail-wg0-f42.google.com ([74.125.82.42]:63485 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752353Ab3G3PNJ (ORCPT ); Tue, 30 Jul 2013 11:13:09 -0400 Received: by mail-wg0-f42.google.com with SMTP id j13so3930535wgh.3 for ; Tue, 30 Jul 2013 08:13:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=wOeorPMwlvyAYAwwr0qmYj15Mq9rMZCaCf1J21AJ7HA=; b=aZDoDqhWNptwVh3bHiF+Qyt/ERN5Np1aDO4kO4KA5Sws8rsDOru/4T1BcIpxwjWih6 77V+ssP5FqOMGN5DyaQ4CSL5VjAWQbm8fXZMGELUESTY4GGNDbqbzh7cv4/kXjhgvdjj WTVmWWVeNrcbnrchrHCb1jGBlTIy4rgvhoT3cUkbYcbUIAeJSaFNt66b2r43T+gcekqe LimIBl/CvaiB16MnRJUo9qEMh/mFlZ944gXXUa0L80lpOZYfMu04osxPqrA6XuzFDx/e HpEG0LzaJ6yAnyuTQ7+KifsqfJnoVezSieXHbICi1HL3LNHQekD9+c2b6sHongpb/tPy oMvQ== X-Received: by 10.180.75.148 with SMTP id c20mr1312619wiw.25.1375197188513; Tue, 30 Jul 2013 08:13:08 -0700 (PDT) Received: from [192.168.1.102] (c-71-234-225-85.hsd1.ct.comcast.net. [71.234.225.85]) by mx.google.com with ESMTPSA id nb12sm29184174wic.3.2013.07.30.08.13.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 30 Jul 2013 08:13:08 -0700 (PDT) Message-ID: <51F7D802.9070208@dev.mellanox.co.il> Date: Tue, 30 Jul 2013 11:13:06 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "linux-rdma (linux-rdma@vger.kernel.org)" Subject: [PATCH opensm] osm_sa_path_record.c: Fix rate setting issue in SA PR handling X-Gm-Message-State: ALoCoQkJWuY4m9d0DbZ2vO+rHBSWeTDFlAf1AJitVbJ2WT+5jKYi1S0Rg8vIYg1hrGsKew+Ugk+W Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For switch egress ports, fix rate setting for an extended speed port Signed-off-by: Hal Rosenstock --- opensm/osm_sa_path_record.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/opensm/osm_sa_path_record.c b/opensm/osm_sa_path_record.c index 02aeb9f..e7ac607 100644 --- a/opensm/osm_sa_path_record.c +++ b/opensm/osm_sa_path_record.c @@ -385,7 +385,7 @@ static ib_api_status_t pr_rcv_get_path_parms(IN osm_sa_t * sa, ib_port_info_compute_rate(p_pi, p_pi0->capability_mask & IB_PORT_CAP_HAS_EXT_SPEEDS)) > 0) rate = ib_port_info_compute_rate(p_pi, - p_pi->capability_mask & IB_PORT_CAP_HAS_EXT_SPEEDS); + p_pi0->capability_mask & IB_PORT_CAP_HAS_EXT_SPEEDS); if (sa->p_subn->opt.qos) { /*