diff options
author | Michael Brown | 2016-11-16 23:22:13 +0100 |
---|---|---|
committer | Michael Brown | 2016-11-16 23:22:13 +0100 |
commit | daa8ed9274d91a157dc049f00792f62c98b0a11a (patch) | |
tree | 7ce6edec2f46a6fcab3c0a1edc9c989e2b6c3885 /src/core | |
parent | [build] Disable TIVOLI_VMM_WORKAROUND in the qemu configuration (diff) | |
download | ipxe-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.c | 3 |
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 ); } /** |