From patchwork Thu Aug 7 10:05:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 4690581 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 31E30C0338 for ; Thu, 7 Aug 2014 10:05:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5B92A200BE for ; Thu, 7 Aug 2014 10:05:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 88655201DD for ; Thu, 7 Aug 2014 10:05:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754900AbaHGKFX (ORCPT ); Thu, 7 Aug 2014 06:05:23 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:61064 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757279AbaHGKFW (ORCPT ); Thu, 7 Aug 2014 06:05:22 -0400 Received: by mail-wi0-f177.google.com with SMTP id ho1so4703790wib.10 for ; Thu, 07 Aug 2014 03:05:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=KfcOWXDDSkg1+/KQfOwJBnpp2EUq8sHtGj2Yu8AN8JU=; b=XZndZYsNSdw0EB8GuF00RprrOwkIrZVB9axfaUbgpuHu3uaGdQip4w8Ty+4mqqwIl4 CZr21FAmRVzPzHLbOP5/HcN7PkVlnAvf3MaI6J0/HqBAQILGD54DUTo1KzCcsMPjEZOW C/VqEh+gcZsH7hYqRlAojVyv9Epyxk8Boi6etBFD5VHngZNinHfU1lAMcThzGslzXOLX GVYy5R339EgIV6+0P5Q81Gwjw63CqNNIz2nptVrgGjND2Zb4hb9q0eAeljNTpKqDaTav icCgk+imLYpd6LxapfW/yDOSdYGljJ8NGzHIC+KMAOdrga88DgW1WVejFmR6lnCRlCS1 Qjnw== X-Gm-Message-State: ALoCoQkCMl+C1K7OhLWONxR/MSBOd+4k1wKQPpfTMzpXeeL/6OyCY/VebM2LdQsdCQZZRNK5VGEJ X-Received: by 10.180.187.197 with SMTP id fu5mr57723942wic.64.1407405920759; Thu, 07 Aug 2014 03:05:20 -0700 (PDT) Received: from [192.168.1.102] (c-98-229-118-119.hsd1.ma.comcast.net. [98.229.118.119]) by mx.google.com with ESMTPSA id eh7sm8786095wjd.32.2014.08.07.03.05.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Aug 2014 03:05:20 -0700 (PDT) Message-ID: <53E34F5C.50102@dev.mellanox.co.il> Date: Thu, 07 Aug 2014 06:05:16 -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)" CC: Shlomi Nimrodi Subject: [PATCH opensm] osm_link_mgr.c: Fix bug in mlnx extended port info setting Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 From: Shlomi Nimrodi Date: Mon, 4 Aug 2014 15:40:43 +0300 In link_mgr_set_physp_pi, set mlnx extended port info speed even if standard speed setting is not required Signed-off-by: Shlomi Nimrodi Signed-off-by: Hal Rosenstock --- opensm/osm_link_mgr.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/opensm/osm_link_mgr.c b/opensm/osm_link_mgr.c index d5c7dde..0f52a2d 100644 --- a/opensm/osm_link_mgr.c +++ b/opensm/osm_link_mgr.c @@ -467,7 +467,7 @@ Send: send_set = TRUE; if (!send_set) - goto Exit; + goto SEND_EPI; attr_mod = cl_hton32(port_num); if (issue_ext) @@ -487,6 +487,7 @@ Send: cl_ntoh64(p_physp->port_guid), cl_ntoh64(p_pi->m_key)); +SEND_EPI: if (send_set2) { status = osm_req_set(sm, osm_physp_get_dr_path_ptr(p_physp), payload2, sizeof(payload2),