]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[interface] Default to calling intf_restart() in response to intf_close()
authorMichael Brown <mcb30@ipxe.org>
Fri, 1 Nov 2013 15:52:31 +0000 (15:52 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 1 Nov 2013 16:17:28 +0000 (16:17 +0000)
commita3346e35877db114d467c55fc14856334d2278ab
treeebe8cb4d361435133fc5d7286de0c9140bdcaf29
parent5c11ff630440b5ef6d1bfadab06e265f61312369
[interface] Default to calling intf_restart() in response to intf_close()

If an object interface does not provide an intf_close() method, then
default to calling intf_restart().  This allows static objects to
safely ignore intf_close(), without needing to add code solely to
ensure that the interface gets unplugged.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/interface.c