]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[autoboot] Avoid closing and immediately reopening network device
authorMichael Brown <mcb30@ipxe.org>
Mon, 1 Feb 2021 23:32:34 +0000 (23:32 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 1 Feb 2021 23:33:50 +0000 (23:33 +0000)
commit0c94659a8ab29cfd4e20b35bf98e364de9901d77
treef0aa4648d6fd9baf09b85d05e3b7fe9927f3c7eb
parent6f1cb791ee7939c7302c8f815d178e89295b0eda
[autoboot] Avoid closing and immediately reopening network device

Some network devices can take a substantial time to close and reopen.
Avoid closing the device from which we are about to attempt booting,
in case it happens to be already open.

Suggested-by: Christian Iversen <ci@iversenit.dk>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/usr/autoboot.c