From patchwork Fri Sep 23 13:17:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 9348087 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 62F8C607F2 for ; Fri, 23 Sep 2016 13:17:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 555992A55F for ; Fri, 23 Sep 2016 13:17:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 49E632A97E; Fri, 23 Sep 2016 13:17:18 +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 D31592A55F for ; Fri, 23 Sep 2016 13:17:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758866AbcIWNRQ (ORCPT ); Fri, 23 Sep 2016 09:17:16 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:36521 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758775AbcIWNRP (ORCPT ); Fri, 23 Sep 2016 09:17:15 -0400 Received: by mail-wm0-f67.google.com with SMTP id b184so2778354wma.3 for ; Fri, 23 Sep 2016 06:17:14 -0700 (PDT) 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=PN6KSlmqn6lRvuNhlqpJ+nZh+7kRl53ASCu7gfbj1Dc=; b=xQT4KAwe8IW6Uiot7SODYUrJPwSelugpJ/kuwQj762JRCg814kYMkj+K2BlhLQNARZ 35dHHr73BxL/6t4tpePVYfBAAWga4bYLlbZzMWfxUWQk/bUeRZlr+5/2u2Udlxcgvnd/ G3p5H2pjp7fWkYdVfzRj7fro+Mi/hqE24Y1M0WortYjQGErpv1uwPo0n+3PdN7xGI1aW BjkO3AprWZOueXBSTxxn0osI4lnCVeas7E7ObqfOVS6tI0wXfVW3qunIPOIHGmieHEmo uNC6kGHX9nZF2IdRHGqVt4rramKYLk8we8tBl29jJU37yuzDLA/ewr1cO0+dtXnVVgxv lgKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=PN6KSlmqn6lRvuNhlqpJ+nZh+7kRl53ASCu7gfbj1Dc=; b=krFyXs/PFzzpiFMHGfgykflMnglyyDZCwrBaRTiEbEJ8SwdMZuPqKLCHc7eUx8nTX2 8Ux5Y2v5aZXpzx5QgpI0z8eettD8zp9/fmReqtlSRLqGSHDTMsrfViuk5CGgX+ysrUvz 8001/q4eoRaLP3ek2ZC09XkLtinHOs6xBc12RNc3UQf2ojnzDSCWEymZEXVlgyNAz/gL 5IC42IG6kTrl1SwIhLARSLwApYPdDwO6eIcjuh8lgFnWoLh4u7BXEQbojr1PWr3Ak0Qg T6Kvd+QettQP2QSFTNAgmY4fQ+qkfyzdc7vMVXw1UShQrOzp3IUH3N2dDlJl1DC5/wIe nXVA== X-Gm-Message-State: AE9vXwM2zoR0jIGG9P6xOv9+UTBtA3fmSWONho7dkMMn0Riefhf51jufhxPBQh7INLWOsQ== X-Received: by 10.194.141.13 with SMTP id rk13mr6915572wjb.25.1474636633701; Fri, 23 Sep 2016 06:17:13 -0700 (PDT) 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 t65sm3094116wmt.15.2016.09.23.06.17.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Sep 2016 06:17:13 -0700 (PDT) To: "Weiny, Ira" Cc: "linux-rdma@vger.kernel.org" From: Hal Rosenstock Subject: [PATCH TRIVIAL infiniband-diags] ibportstate.c: When not switch, port can be router port Message-ID: Date: Fri, 23 Sep 2016 09:17:10 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.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 Indicate PortInfo is on CA/RT port rather than just CA port when not on Switch port. RT is what's used by ibnetdiscover for router nodes. 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/ibportstate.c b/src/ibportstate.c index cb47aa9..cfb8be7 100644 --- a/src/ibportstate.c +++ b/src/ibportstate.c @@ -522,9 +522,9 @@ int main(int argc, char **argv) IBEXIT("Can't set M_Key fields on switch port != 0"); if (port_op != QUERY || changed) - printf("Initial %s PortInfo:\n", is_switch ? "Switch" : "CA"); + printf("Initial %s PortInfo:\n", is_switch ? "Switch" : "CA/RT"); else - printf("%s PortInfo:\n", is_switch ? "Switch" : "CA"); + printf("%s PortInfo:\n", is_switch ? "Switch" : "CA/RT"); espeed_cap = get_port_info(&portid, data, portnum, is_switch); show_port_info(&portid, data, portnum, espeed_cap, is_switch); if (is_mlnx_ext_port_info_supported(devid)) {