We currently request cable detection in PXE_OPCODE_INITIALIZE to work around buggy Emulex drivers (see commit c0b61ba ("[efi] Work around bugs in Emulex NII driver")). This causes problems with some other NII drivers (e.g. Mellanox), which may time out if the underlying link is intrinsically slow to come up. Attempt to work around both problems simultaneously by requesting cable detection only if the underlying NII driver does not support link status reporting via PXE_OPCODE_GET_STATUS. (This is based on a potentially incorrect assumption that the buggy Emulex drivers do not claim to report link status via PXE_OPCODE_GET_STATUS.) Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
632 |
|
632 |
|
633 |
|
633 |
|
634 |
|
634 |
|
635 |
|
|
|
636 |
|
|
|
637 |
|
|
|
638 |
|
|
|
639 |
|
|
|
640 |
|
|
|
641 |
|
|
|
642 |
|
|
|
643 |
|
|
|
644 |
|
|
|
645 |
|
|
|
646 |
|
|
|
647 |
|
|
|
648 |
|
|
|
649 |
|
|
|
650 |
|
|
|
651 |
|
635 |
|
652 |
|
636 |
|
653 |
|
637 |
|
|
|
||
968 |
|
952 |
|
969 |
|
953 |
|
970 |
|
954 |
|
|
955 |
|
|
971 |
|
956 |
|
972 |
|
957 |
|
973 |
|
958 |
|
|
959 |
|
|
|
960 |
|
|
|
961 |
|
|
|
962 |
|
|
974 |
|
963 |
|
975 |
|
964 |
|
976 |
|
965 |
|
977 |
|
|
|
978 |
|
|
|
979 |
|
|
|
980 |
|
|
|
981 |
|
|
|
982 |
|
|
|
|
966 |
|
|
|
967 |
|
|
|
968 |
|
|
|
969 |
|
|
|
970 |
|
|
|
971 |
|
|
|
972 |
|
|
|
973 |
|
|
|
974 |
|
|
|
975 |
|
|
|
976 |
|
|
983 |
|
977 |
|
984 |
|
|
|
|
978 |
|
|
|
979 |
|
|
|
980 |
|
|
985 |
|
981 |
|
986 |
|
982 |
|
987 |
|
983 |
|