iPXE - Open Source Boot Firmware

[ipoib] Mask out non-QPN bits in the IPoIB destination MAC when sending
authorMichael Brown <mcb30@etherboot.org>
Fri, 13 Nov 2009 22:34:47 +0000 (22:34 +0000)
committerMichael Brown <mcb30@etherboot.org>
Mon, 16 Nov 2009 22:15:29 +0000 (22:15 +0000)
commitc2c77377a6025495c2bbdd4fae96ecaa2b4651f1
treefb2f171bd3782bd30918401c0ca73efad777bbff
parent50242e4202f7fc77facfcebca25d107c4abc60c1
[ipoib] Mask out non-QPN bits in the IPoIB destination MAC when sending

The first byte of the IPoIB MAC address is used for flags indicating
support for "connected mode".  Strip out the non-QPN bits of the first
dword when constructing the address vector for transmitted IPoIB
packets, so as not to end up passing an invalid QPN in the BTH.
src/drivers/net/ipoib.c
src/include/gpxe/infiniband.h
src/include/gpxe/ipoib.h