From patchwork Mon Jan 25 13:29:37 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 75043 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0PDY9Bw032556 for ; Mon, 25 Jan 2010 13:34:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753498Ab0AYNdr (ORCPT ); Mon, 25 Jan 2010 08:33:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753595Ab0AYNdr (ORCPT ); Mon, 25 Jan 2010 08:33:47 -0500 Received: from qmta12.westchester.pa.mail.comcast.net ([76.96.59.227]:33440 "EHLO qmta12.westchester.pa.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753614Ab0AYNdo (ORCPT ); Mon, 25 Jan 2010 08:33:44 -0500 Received: from omta24.westchester.pa.mail.comcast.net ([76.96.62.76]) by qmta12.westchester.pa.mail.comcast.net with comcast id Zp2A1d0021ei1Bg5CpZkyV; Mon, 25 Jan 2010 13:33:44 +0000 Received: from hal.comcast.net ([75.69.247.31]) by omta24.westchester.pa.mail.comcast.net with comcast id ZpaH1d0080hNrtn3kpaHAW; Mon, 25 Jan 2010 13:34:17 +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 o0PDX9JX002104; Mon, 25 Jan 2010 08:33:14 -0500 Received: (from hnrose@localhost) by hal.comcast.net (8.14.3/8.14.3/Submit) id o0PDTcdI002057; Mon, 25 Jan 2010 08:29:38 -0500 Date: Mon, 25 Jan 2010 08:29:37 -0500 From: Hal Rosenstock To: sashak@voltaire.com Cc: linux-rdma@vger.kernel.org Subject: [PATCH] opensm/osm_qos.c: Eliminate unneeded endport SL to VL setup Message-ID: <20100125132937.GA2053@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/opensm/osm_qos.c b/opensm/opensm/osm_qos.c index 6bbbfa2..afa454f 100644 --- a/opensm/opensm/osm_qos.c +++ b/opensm/opensm/osm_qos.c @@ -305,6 +305,12 @@ int osm_qos_setup(osm_opensm_t * p_osm) (&p_node->sw->switch_info)) continue; + if (ib_switch_info_get_opt_sl2vlmapping(&p_node->sw->switch_info) && + p_osm->sm.p_subn->opt.use_optimized_slvl && + !memcmp(&swe_config.sl2vl, &sw0_config.sl2vl, + sizeof(swe_config.sl2vl))) + continue; + cfg = &sw0_config; } else if (osm_node_get_type(p_node) == IB_NODE_TYPE_ROUTER) cfg = &rtr_config;