From patchwork Tue Jul 31 16:04:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Netes X-Patchwork-Id: 1260881 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 D4DE3DF280 for ; Tue, 31 Jul 2012 16:09:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755474Ab2GaQIz (ORCPT ); Tue, 31 Jul 2012 12:08:55 -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 S1755426Ab2GaQIy (ORCPT ); Tue, 31 Jul 2012 12:08:54 -0400 Received: by mail-vb0-f46.google.com with SMTP id ff1so5920363vbb.19 for ; Tue, 31 Jul 2012 09:08:54 -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=E/9mqkIkiuaReuRkFHkMoR2uUCq578UvC6L9sJK/8U8=; b=oS+JGRqO0VF/UAPzmvcPwtuq6KNvbPGrm6OKz1lPa3LWYK5YQujb9aWOB6ss9dUJDm 85Yz+RSzMuUQco501wJOcSAuSeNUSJlqUEcK8Z9Eiv/I1W0Scgbgek1Xzx9F41Rzc7eb HWfgmX6wvNucMKcBp5enzMCAjjpKprXHPlhCXLvVWqJ2JJGGtZ/r2pecYTSCcsPqic5T LeT6qJN5EbJKZPByy5YePwguaW54fs0X8nKIiS14ApHP/BAxntDNYEnpQRAZ2YOLjtz+ URJzy3ZIxTYTVL3xv48I4Kq2hbHHPCVIXtptkFFByryidwhT/ZmKuVM/oui16ZlNm5W3 pUJg== Received: by 10.52.93.75 with SMTP id cs11mr12573158vdb.52.1343750934011; Tue, 31 Jul 2012 09:08:54 -0700 (PDT) Received: from localhost ([193.47.165.251]) by mx.google.com with ESMTPS id l12sm427007vdh.8.2012.07.31.09.08.52 (version=SSLv3 cipher=OTHER); Tue, 31 Jul 2012 09:08:53 -0700 (PDT) From: Alex Netes To: linux-rdma@vger.kernel.org Cc: Alex Netes , Vladimir Koushnir Subject: [PATCH 10/27] Fix SL2VL configuration Date: Tue, 31 Jul 2012 19:04:38 +0300 Message-Id: <1343750695-28063-10-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: ALoCoQkqB1f9QyeYohUiNSy5cGW13btNrqpSPgzvLhiVnq+QkYuZJSE2eujscbGLsz+PSguoD1+E Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Set optimized SL2VL table only if node is maked as 'need_update'. Set SL2VL tale for port that marked as 'need_update'. Signed-off-by: Alex Netes Signed-off-by: Vladimir Koushnir --- opensm/osm_qos.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opensm/osm_qos.c b/opensm/osm_qos.c index dd08ac0..ce48867 100644 --- a/opensm/osm_qos.c +++ b/opensm/osm_qos.c @@ -318,7 +318,7 @@ static int qos_extports_setup(osm_sm_t * sm, osm_node_t *node, } } - force_update = p->need_update || sm->p_subn->need_update; + force_update = node->sw->need_update || sm->p_subn->need_update; if (sl2vl_update_table(sm, p0, 0, 0x30000, force_update, &qcfg->sl2vl, port_mad_list)) ret = -1; @@ -331,6 +331,8 @@ static int qos_extports_setup(osm_sm_t * sm, osm_node_t *node, if (ib_port_info_get_port_state(&p->port_info) == IB_LINK_DOWN) continue; + + 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,