net: refactor tap initialization
authorMark McLoughlin <markmc@redhat.com>
Thu, 22 Oct 2009 16:43:36 +0000 (17:43 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 27 Oct 2009 17:29:00 +0000 (12:29 -0500)
commit48ad2f3ae80e2e612cfc9a2f1f92f11dde7f352f
tree9f74f32c588de69e09a47bc637837fcff299abf8
parent62d9d74361c4a1789155f6965e53973cb9407fe8
net: refactor tap initialization

Re-factor things so that there is only one call site for
net_tap_fd_init().

Two concerns about the QemuOpts usage here - firstly, we set the script
arguments to their default value and, secondly, we set the ifname value
to the name allocated by the kernel if none is supplied. Are we okay
with such things ending up in writeconfig output?

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net.c