Skip to contentSkip to conversation

infiniband-diags: Add Switch-IB2 support to device white lists

PATCH New Hal Rosenstock 1 participant 1 message Apr 21, 2016 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 infiniband-diags: Add Switch-IB2 support to device white lists

From: Vladimir Koushnir <vladimirk-VPRAkNaXOzVWk0Htik3J/[email protected]>

Add Switch-IB2 device ID to infiniband-diags device white lists

---

libibnetdisc/src/ibnetdisc.c +1 -1
index 938a516..6ef7805 100644
@@ -197,7 +197,7 @@
 {
 	uint16_t devid = (uint16_t) mad_get_field(port->node->info, 0, IB_NODE_DEVID_F);
 
-	if ((devid >= 0xc738 && devid <= 0xc73b) || devid == 0xcb20)
+	if ((devid >= 0xc738 && devid <= 0xc73b) || devid == 0xcb20 || devid == 0xcf08)
 		return 1;
 	if (devid >= 0x1003 && devid <= 0x1016)
 		return 1;
src/ibdiag_common.c +1 -1
index 623205a..df2349e 100644
@@ -532,7 +532,7 @@
 int is_mlnx_ext_port_info_supported(uint32_t devid)
 {
 	if (ibd_ibnetdisc_flags & IBND_CONFIG_MLX_EPI) {
-		if ((devid >= 0xc738 && devid <= 0xc73b) || devid == 0xcb20)
+		if ((devid >= 0xc738 && devid <= 0xc73b) || devid == 0xcb20 || devid == 0xcf08)
 			return 1;
 		if (devid >= 0x1003 && devid <= 0x1016)
 			return 1;
src/vendstat.c +1 -0
index baade3e..99e19fa 100644
@@ -146,6 +146,7 @@
 	{0x0245, 0x0245},	/* Switch-X */
 	{0xc738, 0xc73b},	/* Switch-X */
 	{0xcb20, 0xcb20},	/* Switch-IB */
+	{0xcf08, 0xcf08},	/* Switch-IB2 */
 	{0x01b3, 0x01b3},	/* IS-4 */
 	{0x1003, 0x1016},	/* Connect-X */
 	{0x0000, 0x0000}};

--
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