From patchwork Wed May 7 18:10:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 4131071 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C7B409F23C for ; Wed, 7 May 2014 18:10:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EB7FD20212 for ; Wed, 7 May 2014 18:10:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1AD33201FB for ; Wed, 7 May 2014 18:10:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752195AbaEGSKl (ORCPT ); Wed, 7 May 2014 14:10:41 -0400 Received: from mail-we0-f174.google.com ([74.125.82.174]:62981 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751865AbaEGSKk (ORCPT ); Wed, 7 May 2014 14:10:40 -0400 Received: by mail-we0-f174.google.com with SMTP id k48so1404501wev.33 for ; Wed, 07 May 2014 11:10:39 -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=i8pNN60v52E0rDi4us8LsQESPbMrrYTvfM9pkiG39ec=; b=fEC+IJ3Fu4Dfgr064Ss8+mpLltWGColzXSTLONXwFDdeL66akMkozURtlJbWxkyfZS xPZ4Cj3XH4O/0zeJPDrc2Rh4cx2OTY9JudJpcuirddxZI0jMNf5l+ZGJTnU5a1Acc9K0 hXWJ1jabl9emyqaS9kkPC9eg3IRRNeFv6+bq1Hx73/eXa2K6+mWB4fTaY0tEhXXzynL5 DxpDPs7WV21nADGEfHqcEF5tKw1O84ZmA9dnqTRZIP7X97WOKy6qkOgGGpsgl7t6QwjG QERN9M2kqzOrc/ZTHwt6GlT2IDKANb0zA1i4k8hz/aTSXz9DaUl/FwIEJxZcjKyqiDR6 9rOg== X-Gm-Message-State: ALoCoQnfma5QZKcXUkUhG87UtjVP+JgwgDY2hRRIlhpVqstX4z/P4UGPx8e7lxoMIIX0rk4AFDuq X-Received: by 10.194.203.137 with SMTP id kq9mr4486640wjc.55.1399486239777; Wed, 07 May 2014 11:10:39 -0700 (PDT) Received: from [10.70.1.63] (bzq-218-90-50.red.bezeqint.net. [81.218.90.50]) by mx.google.com with ESMTPSA id d6sm33113789wiz.4.2014.05.07.11.10.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 07 May 2014 11:10:39 -0700 (PDT) Message-ID: <536A771D.20602@dev.mellanox.co.il> Date: Wed, 07 May 2014 14:10:37 -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: Ira Weiny , Florent Parent , "Susan Coulter (skc@lanl.gov)" Subject: [PATCH v2 opensm] osm_subnet.c: Enhance opensm conf file documentation for PerfMgr options 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.5 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 Reviewed-by: Ira Weiny Signed-off-by: Hal Rosenstock --- Change from version 1: Formatted properly for posting to linux-rdma -- 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/opensm/osm_subnet.c b/opensm/osm_subnet.c index f30d852..8ee62d9 100644 --- a/opensm/osm_subnet.c +++ b/opensm/osm_subnet.c @@ -2628,28 +2628,35 @@ int osm_subn_output_conf(FILE *out, IN osm_subn_opt_t * p_opts) fprintf(out, "#\n# Performance Manager Options\n#\n" "# perfmgr enable\n" + "# PerfMgr is enabled if TRUE and disabled if FALSE (default FALSE)\n" "perfmgr %s\n\n" - "# perfmgr redirection enable\n" + "# redirection enable\n" + "# Redirection supported if TRUE and not supported if FALSE (default TRUE)\n" "perfmgr_redir %s\n\n" - "# sweep time in seconds\n" + "# sweep time in seconds (default %u seconds)\n" "perfmgr_sweep_time_s %u\n\n" - "# Max outstanding queries\n" + "# Max outstanding queries (default %u)\n" "perfmgr_max_outstanding_queries %u\n" + "# Ignore CAs on sweep (default FALSE)\n" "perfmgr_ignore_cas %s\n\n" - "# Remove missing nodes from DB\n" + "# Remove missing nodes from DB (default TRUE)\n" "perfmgr_rm_nodes %s\n\n" - "# Log error counters to opensm.log\n" + "# Log error counters to opensm.log (default TRUE)\n" "perfmgr_log_errors %s\n\n" "# Query PerfMgrGet(ClassPortInfo) for extended capabilities\n" + "# Extended capabilities include 64 bit extended counters and transmit wait support\n" + "# default FALSE\n" "perfmgr_query_cpi %s\n\n" - "# Log xmit_wait errors\n" + "# Log xmit_wait errors (default FALSE)\n" "perfmgr_xmit_wait_log %s\n\n" "# If logging xmit_wait's; set threshold (default %u)\n" "perfmgr_xmit_wait_threshold %u\n\n" , p_opts->perfmgr ? "TRUE" : "FALSE", p_opts->perfmgr_redir ? "TRUE" : "FALSE", + OSM_PERFMGR_DEFAULT_SWEEP_TIME_S, p_opts->perfmgr_sweep_time_s, + OSM_PERFMGR_DEFAULT_MAX_OUTSTANDING_QUERIES, p_opts->perfmgr_max_outstanding_queries, p_opts->perfmgr_ignore_cas ? "TRUE" : "FALSE", p_opts->perfmgr_rm_nodes ? "TRUE" : "FALSE",