From patchwork Tue Nov 28 22:11:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 10081171 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 B11D060353 for ; Tue, 28 Nov 2017 22:11:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3A562970F for ; Tue, 28 Nov 2017 22:11:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9864929710; Tue, 28 Nov 2017 22:11:43 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 31C9F29711 for ; Tue, 28 Nov 2017 22:11:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752165AbdK1WLm (ORCPT ); Tue, 28 Nov 2017 17:11:42 -0500 Received: from mail-qk0-f193.google.com ([209.85.220.193]:33818 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752129AbdK1WLl (ORCPT ); Tue, 28 Nov 2017 17:11:41 -0500 Received: by mail-qk0-f193.google.com with SMTP id d66so1975043qkg.1 for ; Tue, 28 Nov 2017 14:11:41 -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-language:content-transfer-encoding; bh=nCRrOoVHsYvpMZT3kV/8dpsmzrOhrfZp6gD1r4Lxx2Y=; b=jB9m6B8/uimob0iUauwMVgH5HKfrWV+xvvlv8O3UxAFGIMt6pOvk3oElW4GkIt8vbn cEf1EAt/edWNIQQ8eFzlyucYV9f+o9YY8oy+Gsn4JYp7gXgBef9tAzKaG0QeFebQonhm iTAOc6/1ry0jEoNs/6EeJqLCIte7sFOkqtuv+qywpH/0ExnDjev9HNicpi+4tNU9zAAJ oXcxr2zn6gH/Ea9bloXUfTLQsOiQ+ufrxsz0CUnDExnK786BfiPPabvMwfuK6Q4JHNRp 6UHy5gGRzul24mdmHHTLZcuy8GBWKtrspWYWYk7oLwyRwTe5c0UHChlZDJtGcODj5aNh SNqg== 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-language:content-transfer-encoding; bh=nCRrOoVHsYvpMZT3kV/8dpsmzrOhrfZp6gD1r4Lxx2Y=; b=Z81zdUUttPujO4QrQQYQhcNqgvwJkGLN3/Y5GJgFLAeD1+zUwDY3wrl22sgkdGBfZ9 aPQgKstQKS655TpBzULoLvWPW1rFgD9R4I0QNGJwFdb+mhIhBTJ2iTBM+kcCVQ6hkIdW N5V1sJ0d9IWY3R9xPRhlXe4HJONk9Lp5pctV3qF6qseXKXth+ta9z6fNr6X8ksIFIjJ1 c9XUJy1Dlz2SlLIBmW8gblCYETvbIfvSj5cHSRgzAPttYezuAPA2Zuov5WtqGHYeK9zP d/Jp4WJC9zgraIGAKRkoX95duY3iJUWNR477to9SI4+QCQ+oqM9SjOWVpeCBfd+vOOUp FNwQ== X-Gm-Message-State: AJaThX7Ix2PVSgpUhviI9ApNDzXwQ8wqScCBHst+SFiuIKkN2mopwqup gN1DKNyb2ZsohyUbOxcgmhqmb2Hs X-Google-Smtp-Source: AGs4zMaDFNIpM4o3f6Dyb568aglqqh2kQSMbv5S9H/qi8WT38XEVXqAlx+zkVLzn6NoXm/OorZSSGg== X-Received: by 10.55.146.65 with SMTP id u62mr1253325qkd.112.1511907100966; Tue, 28 Nov 2017 14:11:40 -0800 (PST) Received: from [192.168.1.183] (c-73-182-207-166.hsd1.ma.comcast.net. [73.182.207.166]) by smtp.googlemail.com with ESMTPSA id 50sm154435qtn.48.2017.11.28.14.11.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Nov 2017 14:11:40 -0800 (PST) To: "Weiny, Ira" Cc: "linux-rdma@vger.kernel.org" From: Hal Rosenstock Subject: [PATCH infiniband-diags 1/6] ibdiag_common.c: In is_port_info_extended_supported, query PortInfo for port, 0 when node is a switch for HDR support Message-ID: <94344ecd-c036-9927-b3a5-e21201de03ec@dev.mellanox.co.il> Date: Tue, 28 Nov 2017 17:11:39 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Language: en-US 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 Per MgtWG comment #9363 Signed-off-by: Hal Rosenstock --- libibmad/src/dump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libibmad/src/dump.c b/libibmad/src/dump.c index 2244f38..1f41e62 100644 --- a/libibmad/src/dump.c +++ b/libibmad/src/dump.c @@ -632,6 +632,8 @@ void mad_dump_portcapmask2(char *buf, int bufsz, void *val, int valsz) s += sprintf(s, "\t\t\t\tIsSwitchPortStateTableSupported\n"); if (mask & (1 << 4)) s += sprintf(s, "\t\t\t\tIsLinkWidth2xSupported\n"); + if (mask & (1 << 5)) + s += sprintf(s, "\t\t\t\tIsLinkSpeedHDRSupported\n"); if (s != buf) *(--s) = 0;