]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Attempt NII initialisation both with and without cable detection 134/head
authorMichael Brown <mcb30@ipxe.org>
Mon, 17 Aug 2020 12:08:05 +0000 (13:08 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 17 Aug 2020 13:28:21 +0000 (14:28 +0100)
commitef2c844d01e78723af54b6ca67019fd9fe7f08e4
treea7f6e0179487c0b35ac5cd7972b396b499d82778
parentc63e61df75c815da1dc93196bbb6a931743b736f
[efi] Attempt NII initialisation both with and without cable detection

We currently use a heuristic to determine whether or not to request
cable detection in PXE_OPCODE_INITIALIZE, based on the need to work
around a known Emulex driver bug (see commit c0b61ba "[efi] Work
around bugs in Emulex NII driver") and the need to accommodate links
that are legitimately slow to come up (see commit 6324227 "[efi] Skip
cable detection at initialisation where possible").

This heuristic appears to fail with newer Emulex drivers.  Attempt to
support all known drivers (past and present) by first attempting
initialisation with cable detection, then falling back to attempting
initialisation without cable detection.

Reported-by: Kwang Woo Lee <kwleeyh@gmail.com>
Tested-by: Kwang Woo Lee <kwleeyh@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/efi/nii.c