]> git.ipfire.org Git - thirdparty/libvirt.git/commit
interface: re-use name and mac address rather than re-retrieving
authorLaine Stump <laine@laine.org>
Fri, 18 Sep 2015 17:19:27 +0000 (13:19 -0400)
committerLaine Stump <laine@laine.org>
Fri, 2 Oct 2015 15:16:11 +0000 (11:16 -0400)
commit070732735f222997d10106100b8d848760efe35e
tree83e7c2d1e582623a8e0cead0a5c8c7f86a17c939
parent6fda6699e55d29c0966f716ee0ed95851a7c4747
interface: re-use name and mac address rather than re-retrieving

Getting the MAC address of an interface is actually fairly expensive,
and we've already gotten it and stored it into def, so just keep def
around a bit longer and retrieve it from there.

This reduces the time for "virsh iface-list --all" from 28 to 23
seconds when there are 400 interfaces.
src/interface/interface_backend_netcf.c