mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
75310e3486
commit
9d3e12e881
2 changed files with 134 additions and 2 deletions
7
vl.c
7
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue