From patchwork Tue Nov 12 11:18:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 3171731 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 A32FCC045B for ; Tue, 12 Nov 2013 11:18:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4A05820425 for ; Tue, 12 Nov 2013 11:18:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1490A203F7 for ; Tue, 12 Nov 2013 11:18:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752085Ab3KLLSr (ORCPT ); Tue, 12 Nov 2013 06:18:47 -0500 Received: from mail-wi0-f173.google.com ([209.85.212.173]:63916 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751509Ab3KLLSq (ORCPT ); Tue, 12 Nov 2013 06:18:46 -0500 Received: by mail-wi0-f173.google.com with SMTP id ey11so3496351wid.6 for ; Tue, 12 Nov 2013 03:18:44 -0800 (PST) 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=zohLOP5kqm8cYsmGOgEGexyQW8aqP7EQOjFvlUhxobM=; b=ULGYFr23TcqITzuRQCGP5drgFUma3FbctQG/EdjoiDTTqRbqON8LNFls9yNifcyc2j ehW2BmO+Rn5RPr1tJEv5uGGAJI9PpjK6LZZPvsIrCcbj/uABV9JLrNGMTbCMW+fpAzYK vM/mjHgBy2JACZR68rTwGkY2fR4wXQ3ExZue53IBZS4jrKpjqXPL3IubtHxcgaq752A0 BrQWo5SdVU7IHLXIUtlrO/hq0+W/b6Y+JVQzUNQnfdr6IRHktbmzO/XtGeXOhF6uQ3zv 5zhaRxizE/wZspH4m1tTfm3WZMoqVPpWbgR/R5z+b7qq/k0POzI7cAQwR4r4pHIopJW6 r3bw== X-Gm-Message-State: ALoCoQkDXxFuYplHBfVPNOH+UXeCQnQYMQDARKnJOB8KCWU11zBuzrOd4GAK4V16etGQpqpPdF5F X-Received: by 10.194.200.100 with SMTP id jr4mr8324171wjc.37.1384255124785; Tue, 12 Nov 2013 03:18:44 -0800 (PST) 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 i8sm43449460wiy.6.2013.11.12.03.18.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Nov 2013 03:18:44 -0800 (PST) Message-ID: <52820E8C.40509@dev.mellanox.co.il> Date: Tue, 12 Nov 2013 06:18:36 -0500 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: Vladimir Koushnir , Jim Schutt Subject: [PATCH opensm] Remove unused lid matrix calculation in Torus_2Qos routing Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 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: Vladimir Koushnir Signed-off-by: Vladimir Koushnir Signed-off-by: Hal Rosenstock Acked-by: Jim Schutt --- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/opensm/osm_ucast_mgr.h b/include/opensm/osm_ucast_mgr.h index c534b7e..b9c1ca1 100644 --- a/include/opensm/osm_ucast_mgr.h +++ b/include/opensm/osm_ucast_mgr.h @@ -296,5 +296,7 @@ int osm_ucast_mgr_process(IN osm_ucast_mgr_t * p_mgr); * SEE ALSO * Unicast Manager, Node Info Response Controller *********/ + +int ucast_dummy_build_lid_matrices(void *context); END_C_DECLS #endif /* _OSM_UCAST_MGR_H_ */ diff --git a/opensm/osm_torus.c b/opensm/osm_torus.c index 8139f1a..71753cf 100644 --- a/opensm/osm_torus.c +++ b/opensm/osm_torus.c @@ -9550,6 +9550,7 @@ int osm_ucast_torus2QoS_setup(struct osm_routing_engine *r, r->context = ctx; r->ucast_build_fwd_tables = torus_build_lfts; + r->build_lid_matrices = ucast_dummy_build_lid_matrices; r->update_sl2vl = torus_update_osm_sl2vl; r->update_vlarb = torus_update_osm_vlarb; r->path_sl = torus_path_sl; diff --git a/opensm/osm_ucast_mgr.c b/opensm/osm_ucast_mgr.c index 6384362..9ef7947 100644 --- a/opensm/osm_ucast_mgr.c +++ b/opensm/osm_ucast_mgr.c @@ -1182,3 +1182,8 @@ int osm_ucast_dor_setup(struct osm_routing_engine *r, osm_opensm_t * osm) r->ucast_build_fwd_tables = ucast_dor_build_lfts; return 0; } + +int ucast_dummy_build_lid_matrices(void *context) +{ + return 0; +}