Comment 2 for bug 1535045

Revision history for this message
David Marchand (david-marchand) wrote : Re: Biosdevname does not provide interface naming information for ConnecX4 Devices

Quick and dirty fix that works for me :

Index: biosdevname-0.4.1/src/bios_device.c
===================================================================
--- biosdevname-0.4.1.orig/src/bios_device.c 2016-01-20 15:53:53.000000000 +0100
+++ biosdevname-0.4.1/src/bios_device.c 2016-01-20 16:27:15.211206243 +0100
@@ -215,7 +215,7 @@
 /* Check for Mellanox/Chelsio drivers */
 int ismultiport(const char *driver)
 {
- if (!strncmp(driver, "mlx", 3))
+ if (!strncmp(driver, "mlx4", 4))
                return 1;
        if (!strncmp(driver, "cxgb", 4))
                return 1;