From patchwork Tue Jul 31 16:04:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Netes X-Patchwork-Id: 1260891 X-Patchwork-Delegate: alexne@voltaire.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 03BDADFFFD for ; Tue, 31 Jul 2012 16:09:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755476Ab2GaQI7 (ORCPT ); Tue, 31 Jul 2012 12:08:59 -0400 Received: from mail-vb0-f46.google.com ([209.85.212.46]:54893 "EHLO mail-vb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755426Ab2GaQI5 (ORCPT ); Tue, 31 Jul 2012 12:08:57 -0400 Received: by mail-vb0-f46.google.com with SMTP id ff1so5920363vbb.19 for ; Tue, 31 Jul 2012 09:08:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=aBw5uIg5s3JxUygRGYIx60fpIHXJ4/P/2Qzzn/0hRwE=; b=IEm7nDPv4/ms8A9LS++S/s0TJFpNvPPmUP47SC15R4Tk1RyhtuExiS7q9TdHwdOrBN T1lnIXTw6FhLZgg0yKrFAXhVK95b9WmzD6ZQ2fqKEBoABlyo6t0taIq+EjMpFd/F0T4C sn/vJxC4oKHftx3pj8gvYYYNH1aPcVCYcl/RJAwllbrNZ+PIwHEW9l1JonHNEn33A6jK qmRRzSjbvhATOOs+Rp5FcsxWi0PbFC6YL4bNMA2eFU/0EM7PX+PrIco4VjFClujOgza1 VzCoLDqp4JaKYl43AA/BTT5w+sIt3M0dSjMmnGYxvdf7aAXdVYF9iS4TcTvovMV31NI9 0DXQ== Received: by 10.52.22.33 with SMTP id a1mr12673580vdf.104.1343750937092; Tue, 31 Jul 2012 09:08:57 -0700 (PDT) Received: from localhost ([193.47.165.251]) by mx.google.com with ESMTPS id s10sm425721vdg.10.2012.07.31.09.08.55 (version=SSLv3 cipher=OTHER); Tue, 31 Jul 2012 09:08:56 -0700 (PDT) From: Alex Netes To: linux-rdma@vger.kernel.org Cc: Alex Netes Subject: [PATCH 11/27] Fix base port0 sl2vl mapping optimization Date: Tue, 31 Jul 2012 19:04:39 +0300 Message-Id: <1343750695-28063-11-git-send-email-alexne@mellanox.com> X-Mailer: git-send-email 1.7.11.2 In-Reply-To: <1343750695-28063-1-git-send-email-alexne@mellanox.com> References: <1343750695-28063-1-git-send-email-alexne@mellanox.com> X-Gm-Message-State: ALoCoQmW7OieTl2RMPY6R9LP8r9+ulaUQh++9Sf5pPzN4KpwbcivcSlPfo7utdvkqAx9MawZCzOc Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org The settings should be saved to the port that was used during the calculation and not port 0 by default. Signed-off-by: Alex Netes --- opensm/osm_qos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opensm/osm_qos.c b/opensm/osm_qos.c index ce48867..bfcf1e3 100644 --- a/opensm/osm_qos.c +++ b/opensm/osm_qos.c @@ -319,7 +319,7 @@ static int qos_extports_setup(osm_sm_t * sm, osm_node_t *node, } force_update = node->sw->need_update || sm->p_subn->need_update; - if (sl2vl_update_table(sm, p0, 0, 0x30000, force_update, + if (sl2vl_update_table(sm, p0, p0->port_num, 0x30000, force_update, &qcfg->sl2vl, port_mad_list)) ret = -1; /* @@ -335,7 +335,7 @@ static int qos_extports_setup(osm_sm_t * sm, osm_node_t *node, force_update = p->need_update || force_update; if (ib_port_info_get_op_vls(&p->port_info) != common_op_vl && - sl2vl_update_table(sm, p, 0, 0x20000 | out, + sl2vl_update_table(sm, p, p->port_num, 0x20000 | out, force_update, &qcfg->sl2vl, port_mad_list)) ret = -1;