Skip to contentSkip to conversation

ibnetdisc.c: Add additional supported device IDs to is_mlnx_ext_port_info_supported

PATCH Applied Hal Rosenstock 2 participants 2 messages Jan 14, 2015 – Jan 19, 2015 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---
Change from v1:
Changed ConnectX-3 to ConnectX-IB in patch description

libibnetdisc/src/ibnetdisc.c +2 -2
index 121fe35..f3c6000 100644
@@ -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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 54B67807.5090507-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org

Applied
#2 lore raw
Quoted 11 lines

-----Original Message-----
From: [email protected] [mailto:linux-rdma- [email protected]] On Behalf Of Hal Rosenstock
Sent: Wednesday, January 14, 2015 6:07 AM
To: Weiny, Ira
Cc: linux-rdma ([email protected])
Subject: [PATCHv2 infiniband-diags] ibnetdisc.c: Add additional supported device IDs to is_mlnx_ext_port_info_supported

Quoted 5 lines

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.

Thanks applied.
Ira

Quoted 20 lines

---
Change from v1:
Changed ConnectX-3 to ConnectX-IB in patch description

libibnetdisc/src/ibnetdisc.c index renamed from libibnetdisc/src/ibnetdisc.c +0 -0

121fe35..f3c6000 100644

libibnetdisc/src/ibnetdisc.c +2 -2
@@ -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;
Quoted 5 lines

}
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] 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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html