[klibc] Request: Infiniband Support in ipconfig

H. Peter Anvin hpa at zytor.com
Wed Aug 1 09:31:54 PDT 2012


On 07/31/2012 12:26 PM, Wesley Brown wrote:
> 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.
>

Any way you could get me a packet capture of your Infiniband boot session?

	-hpa


-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.



More information about the klibc mailing list