qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 4/4] Add support for -net bridge


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 4/4] Add support for -net bridge
Date: Thu, 05 Nov 2009 08:45:45 -0600
User-agent: Thunderbird 2.0.0.23 (X11/20090825)

Avi Kivity wrote:
+int net_init_bridge(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan);
+

Don't we need to tear the interface down after shutdown?

net_init_bridge calls net_tap_fd_init which registers tap_cleanup. That closes the fd and frees associated memory.

The helper does not allocate a persistent tap device so closing the file descriptor is sufficient for cleanup.

--
Regards,

Anthony Liguori





reply via email to

[Prev in Thread] Current Thread [Next in Thread]