When functioning as an EFI driver, drivers can be disconnected and reconnected multiple times (e.g. via the EFI shell "connect" command, or by running an executable such as ipxe.efi which will temporarily disconnect existing drivers). Minimise surprise by resetting the network device index to zero whenever the last device is unregistered. This is not foolproof, but it does handle the common case of having all devices unregistered and then reregistered in the original order. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
50 |
|
50 |
|
51 |
|
51 |
|
52 |
|
52 |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
53 |
|
56 |
|
54 |
|
57 |
|
55 |
|
58 |
|
|
|
||
597 |
|
600 |
|
598 |
|
601 |
|
599 |
|
602 |
|
600 |
|
|
|
601 |
|
603 |
|
602 |
|
604 |
|
603 |
|
605 |
|
604 |
|
606 |
|
605 |
|
607 |
|
606 |
|
608 |
|
607 |
|
|
|
|
609 |
|
|
608 |
|
610 |
|
609 |
|
611 |
|
610 |
|
612 |
|
|
|
||
764 |
|
766 |
|
765 |
|
767 |
|
766 |
|
768 |
|
|
769 |
|
|
|
770 |
|
|
|
771 |
|
|
|
772 |
|
|
767 |
|
773 |
|
768 |
|
774 |
|
769 |
|
775 |
|