summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMichael Brown2016-11-16 23:22:13 +0100
committerMichael Brown2016-11-16 23:22:13 +0100
commitdaa8ed9274d91a157dc049f00792f62c98b0a11a (patch)
tree7ce6edec2f46a6fcab3c0a1edc9c989e2b6c3885 /src/core
parent[build] Disable TIVOLI_VMM_WORKAROUND in the qemu configuration (diff)
downloadipxe-daa8ed9274d91a157dc049f00792f62c98b0a11a.tar.gz
ipxe-daa8ed9274d91a157dc049f00792f62c98b0a11a.tar.xz
ipxe-daa8ed9274d91a157dc049f00792f62c98b0a11a.zip
[interface] Provide intf_reinit() to reinitialise nullified interfaces
Provide an abstraction intf_reinit() to restore the descriptor of a previously nullified interface. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/interface.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/interface.c b/src/core/interface.c
index ba148c13..948fa5c5 100644
--- a/src/core/interface.c
+++ b/src/core/interface.c
@@ -295,7 +295,6 @@ void intf_shutdown ( struct interface *intf, int rc ) {
* blocked during shutdown.
*/
void intf_restart ( struct interface *intf, int rc ) {
- struct interface_descriptor *desc = intf->desc;
/* Shut down the interface */
intf_shutdown ( intf, rc );
@@ -309,7 +308,7 @@ void intf_restart ( struct interface *intf, int rc ) {
* infinite loop as the intf_close() operations on each side
* of the link call each other recursively.
*/
- intf->desc = desc;
+ intf_reinit ( intf );
}
/**