* [PATCH v3 infiniband-diags] ibdiag_common.c: Add more supported device IDs in is_mlnx_ext_port_info_supported
@ 2015-01-14 14:06 Hal Rosenstock
[not found] ` <54B677FE.6040508-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Hal Rosenstock @ 2015-01-14 14:06 UTC (permalink / raw)
To: Ira Weiny
Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org),
Or Gerlitz
Add support for some ConnectX-IB, ConnectX-4, and Switch-IB in
is_mlnx_ext_port_info_supported.
This only affects tool(s) which invoke this routine
(is_mlnx_ext_port_info_supported) which is
currently just ibportstate.
is_mlnx_ext_port_info_supported determines whether or not the MLNX
vendor extended port info SMP is sent which is used to determine FDR10
speed.
Not having the device in the list would only result in FDR10 being
misinterpreted as QDR.
Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
Change since v2:
Changed ConnectX-3 to ConnectX-IB in patch description
Change since v1:
Improved patch description
diff --git a/src/ibdiag_common.c b/src/ibdiag_common.c
index 8c749c7..384d342 100644
--- a/src/ibdiag_common.c
+++ b/src/ibdiag_common.c
@@ -499,9 +499,9 @@ conv_cnt_human_readable(uint64_t val64, float *val, int data)
int is_mlnx_ext_port_info_supported(uint32_t devid)
{
if (ibd_ibnetdisc_flags & IBND_CONFIG_MLX_EPI) {
- if (devid == 0xc738)
+ if (devid == 0xc738 || devid == 0xcb84)
return 1;
- if (devid >= 0x1003 && devid <= 0x1011)
+ if (devid >= 0x1003 && devid <= 0x1016)
return 1;
}
return 0;
--
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH v3 infiniband-diags] ibdiag_common.c: Add more supported device IDs in is_mlnx_ext_port_info_supported
[not found] ` <54B677FE.6040508-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2015-01-19 22:26 ` Weiny, Ira
0 siblings, 0 replies; 2+ messages in thread
From: Weiny, Ira @ 2015-01-19 22:26 UTC (permalink / raw)
To: Hal Rosenstock
Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org),
Or Gerlitz
> -----Original Message-----
> From: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org [mailto:linux-rdma-
> owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org] On Behalf Of Hal Rosenstock
> Sent: Wednesday, January 14, 2015 6:07 AM
> To: Weiny, Ira
> Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org); Or Gerlitz
> Subject: [PATCH v3 infiniband-diags] ibdiag_common.c: Add more supported
> device IDs in is_mlnx_ext_port_info_supported
>
> Add support for some ConnectX-IB, ConnectX-4, and Switch-IB in
> is_mlnx_ext_port_info_supported.
>
> This only affects tool(s) which invoke this routine
> (is_mlnx_ext_port_info_supported) which is currently just ibportstate.
>
> is_mlnx_ext_port_info_supported determines whether or not the MLNX vendor
> extended port info SMP is sent which is used to determine FDR10 speed.
>
> Not having the device in the list would only result in FDR10 being
> misinterpreted as QDR.
>
> Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Thanks, applied,
Ira
> ---
> Change since v2:
> Changed ConnectX-3 to ConnectX-IB in patch description
>
> Change since v1:
> Improved patch description
>
> diff --git a/src/ibdiag_common.c b/src/ibdiag_common.c index
> 8c749c7..384d342 100644
> --- a/src/ibdiag_common.c
> +++ b/src/ibdiag_common.c
> @@ -499,9 +499,9 @@ conv_cnt_human_readable(uint64_t val64, float *val,
> int data) int is_mlnx_ext_port_info_supported(uint32_t devid) {
> if (ibd_ibnetdisc_flags & IBND_CONFIG_MLX_EPI) {
> - if (devid == 0xc738)
> + if (devid == 0xc738 || devid == 0xcb84)
> return 1;
> - if (devid >= 0x1003 && devid <= 0x1011)
> + if (devid >= 0x1003 && devid <= 0x1016)
> return 1;
> }
> return 0;
> --
> 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
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-19 22:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-14 14:06 [PATCH v3 infiniband-diags] ibdiag_common.c: Add more supported device IDs in is_mlnx_ext_port_info_supported Hal Rosenstock
[not found] ` <54B677FE.6040508-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2015-01-19 22:26 ` Weiny, Ira
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox