From patchwork Thu Aug 7 18:33:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 4692401 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 CAB86C0338 for ; Thu, 7 Aug 2014 18:33:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EFB2B2018E for ; Thu, 7 Aug 2014 18:33:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6621D2018A for ; Thu, 7 Aug 2014 18:33:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750848AbaHGSda (ORCPT ); Thu, 7 Aug 2014 14:33:30 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:61181 "EHLO mail-wi0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750757AbaHGSd3 (ORCPT ); Thu, 7 Aug 2014 14:33:29 -0400 Received: by mail-wi0-f169.google.com with SMTP id n3so1451571wiv.4 for ; Thu, 07 Aug 2014 11:33:28 -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=BTgtURl2Rjoqgpe9f16jbsGhK27/JNdtCtaRjJ289MA=; b=KOi+kFJih2mnbt3eCrZWCdUk2O63m4jtVa6uNjcLRYWvaD9UlDpbcROLbt8JMF9HFP BmTbS9i5eAx2cn2/qI0CweMZ80egl3HaUxvJrxMgmHUG4TH2uIJ6wwg19kBMB96gLCH3 7Irfxg9IMDE3d8v1w5acCLKTjIvBXEHZWklcG0+9xyMJF5cYG9PDuYRVGcLG1dUtw4Hg nwSpjMzwGPQlA99qSX6Lxb8uGPacbEWiN/LNfq2GhvrpKb2Ml1i3PdvtSTQn2/DekgLn q6ReWfmfs02F1/p4DcZq+qFEvVMN7F3OkRZ4LXnnyeTQjuCdEzDC5+1vM1VYkALU/Gt+ Vlug== X-Gm-Message-State: ALoCoQkKl4cYZ3bEj6J/sKfvkW3Yo+LinjbAwNAlXCYT78gflFl1Y2daXjyAXrbRtlB1Ejac0MbQ X-Received: by 10.180.183.167 with SMTP id en7mr62285883wic.6.1407436408418; Thu, 07 Aug 2014 11:33:28 -0700 (PDT) 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 j5sm11609126wjf.35.2014.08.07.11.33.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Aug 2014 11:33:27 -0700 (PDT) Message-ID: <53E3C673.6050107@dev.mellanox.co.il> Date: Thu, 07 Aug 2014 14:33:23 -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 Subject: [PATCH opensm] osm_console.c: Included unknown speed/width ports in "possible issues" 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.6 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 Signed-off-by: Hal Rosenstock --- -- 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_console.c b/opensm/osm_console.c index 1a05902..c68d6b7 100644 --- a/opensm/osm_console.c +++ b/opensm/osm_console.c @@ -975,7 +975,8 @@ static void portstatus_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) fprintf(out, " %" PRIu64 " at 25.78125 Gbps\n", fs.ports_edr); if (fs.ports_disabled + fs.ports_reduced_speed + fs.ports_reduced_width - + fs.ports_unenabled_width + fs.ports_unenabled_speed > 0) { + + fs.ports_unenabled_width + fs.ports_unenabled_speed + + fs.ports_unknown_width + fs.ports_unknown_speed > 0) { fprintf(out, "\nPossible issues:\n"); } if (fs.ports_disabled) { @@ -992,6 +993,10 @@ static void portstatus_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) fs.ports_reduced_speed); __print_port_report(out, fs.reduced_speed_ports); } + if (fs.ports_unknown_speed) { + fprintf(out, " %" PRIu64 " with unknown speed\n", + fs.ports_unknown_speed); + } if (fs.ports_unenabled_width) { fprintf(out, " %" PRIu64 " with unenabled width\n", fs.ports_unenabled_width); @@ -1002,6 +1007,10 @@ static void portstatus_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) fs.ports_reduced_width); __print_port_report(out, fs.reduced_width_ports); } + if (fs.ports_unknown_width) { + fprintf(out, " %" PRIu64 " with unknown width\n", + fs.ports_unknown_width); + } fprintf(out, "\n"); }