From bc1a764e1aa6b5d15a448fd70b01d29b2126b80e Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 11 Jun 2013 10:27:42 -0300 Subject: [PATCH] platform: fix recognition of InfiniBand devices --- src/platform/nm-linux-platform.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 3e2ced7257..1c976f2ae9 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -437,6 +437,8 @@ link_extract_type (NMPlatform *platform, struct rtnl_link *rtnllink, const char if (arptype == ARPHRD_LOOPBACK) return_type (NM_LINK_TYPE_LOOPBACK, "loopback"); + else if (arptype == ARPHRD_INFINIBAND) + return_type (NM_LINK_TYPE_INFINIBAND, "infiniband"); else if (arptype == 256) { /* Some s390 CTC-type devices report 256 for the encapsulation type * for some reason, but we need to call them Ethernet. FIXME: use @@ -448,9 +450,7 @@ link_extract_type (NMPlatform *platform, struct rtnl_link *rtnllink, const char return link_type_from_udev (platform, rtnllink, out_name); else return_type (NM_LINK_TYPE_UNKNOWN, "unknown"); - } else if (!strcmp (type, "ipoib")) - return_type (NM_LINK_TYPE_INFINIBAND, "infiniband"); - else if (!strcmp (type, "dummy")) + } else if (!strcmp (type, "dummy")) return_type (NM_LINK_TYPE_DUMMY, "dummy"); else if (!strcmp (type, "gre")) return_type (NM_LINK_TYPE_GRE, "gre");