]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/network.c
openvswitch: delete ports intelligently
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 24 Aug 2017 13:31:38 +0000 (15:31 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 25 Aug 2017 04:35:54 +0000 (06:35 +0200)
commit581c75e7f4f6bb70acd3eb46ae6e52a9d3132661
tree33028278ed40841b892f4725f60797804fc442d1
parent1efc10652c5767eccd80289b92e206621de329fd
openvswitch: delete ports intelligently

So far, when creating veth devices attached to openvswitch bridges we used to
fork() off a thread on container startup. This thread was kept around until the
container shut down. I have no good explanation why we did it that why but it's
certainly not necessary. Instead, let's fork() off the thread on container
shutdown to delete the veth.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c
src/lxc/lxc_user_nic.c
src/lxc/network.c
src/lxc/network.h