From: "ira.weiny" <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH v3 infiniband-diags] ibdiag_common.c: Disambiguate link speed when QDR and could be FDR10
Date: Tue, 20 Dec 2016 12:02:15 -0500 [thread overview]
Message-ID: <20161220170215.GD29564@phlsvsds.ph.intel.com> (raw)
In-Reply-To: <b3114ca9-18da-f640-7ab1-f05cc364bc27-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
On Tue, Dec 20, 2016 at 11:28:38AM -0500, Hal Rosenstock wrote:
>
> Rather than printing "Could be FDR10", print
> "Could be FDR10 (Found link at QDR but expected speed is FDR10)"
> for this case.
>
> Confusion is with words "Could be" and fact that both
> QDR and FDR10 are both 10.0 Gbps.
>
> Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Thanks applied,
Ira
> ---
> Change since v2:
> Added Active comment to clarify value of 4 for PortInfo:LinkSpeedActive
>
> Change since v1:
> Preserved original "Could be FDR10" so can grep for "Could be"
> along with adding new language.
>
> src/ibdiag_common.c | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/src/ibdiag_common.c b/src/ibdiag_common.c
> index f74eed4..8cad03a 100644
> --- a/src/ibdiag_common.c
> +++ b/src/ibdiag_common.c
> @@ -814,8 +814,14 @@ check_ext_speed:
>
> check_fdr10_active:
> if ((mad_get_field(port->ext_info, 0,
> - IB_MLNX_EXT_PORT_LINK_SPEED_ACTIVE_F) & FDR10) == 0)
> - snprintf(speed_msg, msg_size, "Could be FDR10");
> + IB_MLNX_EXT_PORT_LINK_SPEED_ACTIVE_F) & FDR10) == 0) {
> + /* Special case QDR to try to avoid confusion with FDR10 */
> + if (mad_get_field(port->info, 0, IB_PORT_LINK_SPEED_ACTIVE_F) == 4) /* QDR (10.0 Gbps) */
> + snprintf(speed_msg, msg_size,
> + "Could be FDR10 (Found link at QDR but expected speed is FDR10)");
> + else
> + snprintf(speed_msg, msg_size, "Could be FDR10");
> + }
> }
>
> int vsnprint_field(char *buf, size_t n, enum MAD_FIELDS f, int spacing,
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-12-20 17:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-20 16:28 [PATCH v3 infiniband-diags] ibdiag_common.c: Disambiguate link speed when QDR and could be FDR10 Hal Rosenstock
[not found] ` <b3114ca9-18da-f640-7ab1-f05cc364bc27-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2016-12-20 17:02 ` ira.weiny [this message]
2016-12-20 20:55 ` Yuval Shaia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161220170215.GD29564@phlsvsds.ph.intel.com \
--to=ira.weiny-ral2jqcrhueavxtiumwx3w@public.gmane.org \
--cc=hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.