]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nwfilter: fix tear down order and consolidate functions
authorStefan Berger <stefanb@us.ibm.com>
Thu, 15 Apr 2010 14:49:24 +0000 (10:49 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Thu, 15 Apr 2010 14:49:24 +0000 (10:49 -0400)
commit41b087198d09c5a416bdb9c2e037997234193fb2
tree45f4c3631bdcf6df18b2a2b0f24e9578bf48d276
parentc41873f40edec598029f64feacf3f459b85a7bdc
nwfilter: fix tear down order and consolidate functions

To avoid race-conditions, the tear down of a filter has to happen before
the tap interface disappears and another tap interface with the same
name can re-appear. This patch tries to fix this. In one place, where
communication with the qemu monitor may fail, I am only tearing the
filters down after knowing that the function did not fail.

I am also moving the tear down functions into an include file for other
drivers to reuse.
src/nwfilter/nwfilter_gentech_driver.h
src/qemu/qemu_conf.c
src/qemu/qemu_driver.c