summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2015-10-13 12:40:01 +0200
committerJason Wang <jasowang@redhat.com>2015-10-27 10:30:35 +0800
commit9d3e12e881bc97bc32ac75d146b5347136f29ca1 (patch)
treee3a61b854cb71d10b2cdf99b5380adc8c291ff53 /vl.c
parent75310e3486ab205d870560b75bbcaba72acb26d7 (diff)
downloadqemu-9d3e12e881bc97bc32ac75d146b5347136f29ca1.tar.gz
qemu-9d3e12e881bc97bc32ac75d146b5347136f29ca1.tar.bz2
qemu-9d3e12e881bc97bc32ac75d146b5347136f29ca1.zip
net/dump: Provide the dumping facility as a net-filter
Use the net-filter infrastructure to provide the dumping functions for netdev devices, too. Reviewed-by: Yang Hongyang <yanghy@cn.fujitsu.com> Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index dffaf09a44..f5f7c3f7c4 100644
--- a/vl.c
+++ b/vl.c
@@ -2769,7 +2769,12 @@ static bool object_create_initial(const char *type)
return false;
}
- if (g_str_equal(type, "filter-buffer")) {
+ /*
+ * return false for concrete netfilters since
+ * they depend on netdevs already existing
+ */
+ if (g_str_equal(type, "filter-buffer") ||
+ g_str_equal(type, "filter-dump")) {
return false;
}