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