]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[hermon] Work around missing mport support in current BOFM implementations
authorMichael Brown <mcb30@ipxe.org>
Thu, 7 Apr 2011 12:53:28 +0000 (13:53 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 8 Apr 2011 00:11:08 +0000 (01:11 +0100)
commit15c120041da3e4a9357b20933c14adcf32d667b8
treec11dc9e20da13d4a65498f2dec93a926d52616f1
parent08f122ae42b24385556dbced6cc7f5d0ca0478d5
[hermon] Work around missing mport support in current BOFM implementations

Current BOFM versions are unable to create entries with mport>1, which
means that only the port 1 MAC address can be explicitly specified.

Work around this by using the provided MAC address as a base address
for all subsequent ports.  For example, if BOFM assigns the address

   00:1A:64:76:00:09 for port 1

then we will assign the addresses

   00:1A:64:76:00:09 for port 1
   00:1A:64:76:00:0a for port 2

Future BOFM versions that may correctly support mport will work with
this scheme without modification provided that the BOFM entries are
created in increasing order of mport.  Since BOFM tools tend to
generate entries in increasing order (of slot, port, etc), this is not
an unreasonable compromise.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/infiniband/hermon.c