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, some ConnectX-3s, and Switch-IB.
Signed-off-by: Hal Rosenstock <[email protected]> --- 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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
