-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lpf IPoIB support #134
base: master
Are you sure you want to change the base?
Conversation
Very interesting. There's rfc4390 that documents the IB flavor of DHCP. Couple potential problems ahead:
None of the above are show-stoppers, just something to be cautious about. |
I think they have something like a MAC, it's just obscenely (20 bytes) long.
With old ISC DHCPd, the entry for that node would look like this:
I'm not quite sure who came up with the translation back to the 6 byte MAC in dhcpd (it's a Mellanox Patch-Set to make it support Infiniband), but all the values are directly derived from one another. I have access to a bunch of hardware to test with, and specially their PXE boot environment is rather particular about doing things correctly. I just read the RFC, and it states that the server does not know the clients hardware address. |
0a03d53
to
fb97d76
Compare
Thank you, neat. |
I haven't had a chance to give this a test yet, but in theory the code should be complete. The Kernel behaviour in regards to the response address doesn't really matter at all, since the RFC states that the clients must always request a broadcast response. |
85bcbf8
to
235aaa0
Compare
83b2783
to
549afba
Compare
I have now finally had the chance to test this, and after fixing two small kinks (confused IFLA_BROADCAST and IFA_BROADCAST and Pkt4 refusing the long CHADDR), it's working just fine. Here's a log of a node booting up via HTTP boot. First instance is the UEFI HTTP boot tool reqeusting an IP, and the second is dhclient in the initrd:
Writing reservations for this is super annoying, since the two clients can't agree on neither hwaddr nor cid. |
5db69a2
to
fd98acb
Compare
cba7e01
to
1b17aa3
Compare
I've been using this on our network/cluster since a while now, and it's been running without issues. |
c7729ae
to
608494e
Compare
f19bcc9
to
920fbbb
Compare
I'd like to replace good old dhcpd with something more modern, but we have an InfiniBand network, and thus need IPoIB support for DHCP4.
This is my current work in progress for adding support to the linux lpf side of things.
It's not quite complete, since I'd like to gather some feedback on the interest and way of implementation first, so here is what I got so far.
I couldn't find any documentation on the IPoIB raw header format, but by looking at it, it seems to be just the 20 byte long hwaddr followed by the same 2 byte ethernet protocol type, and two bytes which are always zero.
Based on that, I ended up with this patch.
There is still one issue, which is that in case of a broadcast, InfiniBand does not neccesarily have a generic broadcast address. Instead it has to be queried from the interface, which will need to be added to the generic interface code still.