From patchwork Mon Feb 6 13:03:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 9557729 X-Patchwork-Delegate: ira.weiny@intel.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 885BB60242 for ; Mon, 6 Feb 2017 13:03:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7414827C05 for ; Mon, 6 Feb 2017 13:03:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 68D7727FB0; Mon, 6 Feb 2017 13:03:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 485E127C05 for ; Mon, 6 Feb 2017 13:03:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751154AbdBFNDT (ORCPT ); Mon, 6 Feb 2017 08:03:19 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36042 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751882AbdBFNDR (ORCPT ); Mon, 6 Feb 2017 08:03:17 -0500 Received: by mail-wm0-f66.google.com with SMTP id r18so21827913wmd.3 for ; Mon, 06 Feb 2017 05:03:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev-mellanox-co-il.20150623.gappssmtp.com; s=20150623; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=qXR+GQFjaiF0OYWW11YmWnpDaevJZoK0YXVQwpTDtoc=; b=GzHePDA/76TnAJzr6MACMIx0YeKY4uBwHyAe3ayFBndEPz6G52WyTviLfGX17MxVms z0Xp2INwoOv3V7r6lzsOsnGRdeaaK+mt7mrnckOQ443RoXyP/LoAFEfUIxh4eEGGYr05 SA1WBIC0+S/Un4rdCFG5LV4cPpX453ZIgB/Ll+5SExWGvyjLESrMXdoZ43BGLkMAPI8j GcM9f4Cu6cW+6sbToIIENPVHwSQ0zNxpojZ8Mvh7LNV15fYw7X4UDzQxM+7nzy/fSc57 AA4WbNzj5s5az1VZUidrkCkklGEENqoXQdjIaI6G2cPXjoIHV4umwOZ/woxmCVcBaXKu ktLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=qXR+GQFjaiF0OYWW11YmWnpDaevJZoK0YXVQwpTDtoc=; b=gPjsT68F29GeVr+lisMqoJO1SexyL6K9wy1wIorU3vBTPKUGfNOWhubQR0YoRhZHri wBDbPl951MpJDG/o55hFF9MIG4lXQynCKUxCpYpEj96QhqZsB7MjFsG/NDoZlwkGd+bj s7RvslwyUt2rQ2w7jKbjRvjWX37p9ejI5ah3SoOa3CBItKHZlXgV8Iw2by26zA/6oTgd jjn/Ysmox3tzQyKozdzKIUkvW0enXu0g2Y6dQuY+NS+ULE2U9kIbGz4BiNUaM8criw14 sIcbKhFf9HOfj3QSByr5gLcPXlzA4Zl1zSVQrOHixNsGwL3kBoyX+YEVVSJYQy+UJNZ8 s+2A== X-Gm-Message-State: AMke39m/lBpFnBKLtK3wQ8kP0W9n/WnKCeuOA6tCmNqS6ZHIcUXdWDqR0uJTfcVNE/yedQ== X-Received: by 10.28.5.72 with SMTP id 69mr8061124wmf.6.1486386195767; Mon, 06 Feb 2017 05:03:15 -0800 (PST) Received: from [192.168.1.183] (c-50-177-105-67.hsd1.ma.comcast.net. [50.177.105.67]) by smtp.googlemail.com with ESMTPSA id e6sm1369290wrc.30.2017.02.06.05.03.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Feb 2017 05:03:15 -0800 (PST) To: "Weiny, Ira" Cc: Oded Nissan , "linux-rdma@vger.kernel.org" From: Hal Rosenstock Subject: [PATCH infiniband-diags] ibstat.c: If port is 1x SDR, rate is 2.5 rather than 2 Gbps Message-ID: <7230ef46-74ff-76cd-4123-f34a75a6d436@dev.mellanox.co.il> Date: Mon, 6 Feb 2017 08:03:12 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Oded Nissan Signed-off-by: Oded Nissan 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/src/ibstat.c b/src/ibstat.c index 37f2361..2d980c4 100644 --- a/src/ibstat.c +++ b/src/ibstat.c @@ -182,8 +182,10 @@ static int port_dump(umad_port_t * port, int alone) 7 ? port_phy_state_str[port->phys_state] : "???"); if (is_fdr10(port)) printf("%sRate: %d (FDR10)\n", pre, port->rate); - else + else if (port->rate != 2) /* 1x SDR */ printf("%sRate: %d\n", pre, port->rate); + else + printf("%sRate: 2.5\n", pre); printf("%sBase lid: %d\n", pre, port->base_lid); printf("%sLMC: %d\n", pre, port->lmc); printf("%sSM lid: %d\n", pre, port->sm_lid);