The i350 (and possibly other Intel NICs) have a non-trivial correspondence between the PCI function number and the external physical port number. For example, the i350 has a "LAN Function Sel" bit within the EEPROM which can invert the mapping so that function 0 becomes port 3, function 1 becomes port 2, etc. Unfortunately the MAC addresses within the EEPROM are indexed by physical port number rather than PCI function number. The end result is that when anything other than the default mapping is used, iPXE will use the wrong address as the base MAC address. Fix by using the autoloaded MAC address if it is valid, and falling back to reading the MAC address directly from the EEPROM only if no autoloaded address is available. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
232 |
|
232 |
|
233 |
|
233 |
|
234 |
|
234 |
|
235 |
|
|
|
236 |
|
|
|
237 |
|
|
|
238 |
|
|
|
239 |
|
235 |
|
240 |
|
236 |
|
241 |
|
237 |
|
242 |
|
238 |
|
243 |
|
239 |
|
244 |
|
240 |
|
|
241 |
|
|
|
242 |
|
|
|
243 |
|
|
|
244 |
|
|
245 |
|
245 |
|
246 |
|
246 |
|
247 |
|
247 |
|