* [PATCHv2 infiniband-diags] ibnetdisc.c: Add additional supported device IDs to is_mlnx_ext_port_info_supported
@ 2015-01-14 14:07 Hal Rosenstock
[not found] ` <54B67807.5090507-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Hal Rosenstock @ 2015-01-14 14:07 UTC (permalink / raw)
To: Ira Weiny; +Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)
Similar to previous ibdiag_common.c patch, this adds additional device IDs
to be supported to the ibnetdiscover internal is_mlnx_ext_port_info routine.
These IDs are ConnectX-4, ConnectX-IB, and Switch-IB.
Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
Change from v1:
Changed ConnectX-3 to ConnectX-IB in patch description
diff --git a/libibnetdisc/src/ibnetdisc.c b/libibnetdisc/src/ibnetdisc.c
index 121fe35..f3c6000 100644
--- a/libibnetdisc/src/ibnetdisc.c
+++ b/libibnetdisc/src/ibnetdisc.c
@@ -203,9 +203,9 @@ static int is_mlnx_ext_port_info_supported(ibnd_port_t * port)
{
uint16_t devid = (uint16_t) mad_get_field(port->node->info, 0, IB_NODE_DEVID_F);
- 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[parent not found: <54B67807.5090507-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>]
* RE: [PATCHv2 infiniband-diags] ibnetdisc.c: Add additional supported device IDs to is_mlnx_ext_port_info_supported [not found] ` <54B67807.5090507-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) > -----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) > Subject: [PATCHv2 infiniband-diags] ibnetdisc.c: Add additional supported > device IDs to is_mlnx_ext_port_info_supported > > Similar to previous ibdiag_common.c patch, this adds additional device IDs to > be supported to the ibnetdiscover internal is_mlnx_ext_port_info routine. > These IDs are ConnectX-4, ConnectX-IB, and Switch-IB. > > Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> Thanks applied. Ira > --- > Change from v1: > Changed ConnectX-3 to ConnectX-IB in patch description > > diff --git a/libibnetdisc/src/ibnetdisc.c b/libibnetdisc/src/ibnetdisc.c index > 121fe35..f3c6000 100644 > --- a/libibnetdisc/src/ibnetdisc.c > +++ b/libibnetdisc/src/ibnetdisc.c > @@ -203,9 +203,9 @@ static int is_mlnx_ext_port_info_supported(ibnd_port_t > * port) { > uint16_t devid = (uint16_t) mad_get_field(port->node->info, 0, > IB_NODE_DEVID_F); > > - 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:07 [PATCHv2 infiniband-diags] ibnetdisc.c: Add additional supported device IDs to is_mlnx_ext_port_info_supported Hal Rosenstock
[not found] ` <54B67807.5090507-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