[klibc] Request: Infiniband Support in ipconfig

Wesley Brown wesbrown18 at gmail.com
Tue Jul 31 12:26:24 PDT 2012


When attempting to boot a system using Infiniband interfaces, ipconfig does not recognize Infiniband NICs as having valid MAC addresses, so they are silently ignored.  As I would like to be able to netboot using Infiniband, I have patched ipconfig to support Infiniband interfaces.

Fortunately, it's a pretty simple and straightforward patch.  Below is the patch for your consideration.

--- usr/kinit/ipconfig/netdev.c	2012-07-31 15:13:12.744747261 -0400
+++ usr/kinit/ipconfig/netdev-ib.c	2012-07-31 15:16:26.468087750 -0400
@@ -220,6 +220,9 @@
 	case ARPHRD_LOOPBACK:
 		dev->hwlen = 0;
 		break;
+        case ARPHRD_INFINIBAND:
+                dev->hwlen = 20;
+                break;
 	default:
 		return -1;
 	}

As you can see, it simply returns the proper length of the IB interface's MAC address.

Regards,
-Wes


More information about the klibc mailing list