From: Jason Wang <jasowang@redhat.com>
To: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>,
qemu devel <qemu-devel@nongnu.org>
Cc: Li Zhijian <lizhijian@cn.fujitsu.com>,
Wen Congyang <wency@cn.fujitsu.com>,
zhanghailiang <zhang.zhanghailiang@huawei.com>,
"eddie . dong" <eddie.dong@intel.com>,
"Dr . David Alan Gilbert" <dgilbert@redhat.com>
Subject: Re: [Qemu-devel] [RFC PATCH V2 1/3] filter-rewriter: introduce filter-rewriter initialization
Date: Mon, 4 Jul 2016 16:28:27 +0800 [thread overview]
Message-ID: <577A1E2B.6020002@redhat.com> (raw)
In-Reply-To: <577A137E.7090804@cn.fujitsu.com>
On 2016年07月04日 15:42, Zhang Chen wrote:
>>> @item -object
>>> filter-dump,id=@var{id},netdev=@var{dev},file=@var{filename}][,maxlen=@var{len}]
>>>
>>> Dump the network traffic on netdev @var{dev} to the file
>>> specified by
>>> diff --git a/vl.c b/vl.c
>>> index c6b9a6f..b47be6a 100644
>>> --- a/vl.c
>>> +++ b/vl.c
>>> @@ -2866,7 +2866,8 @@ static bool object_create_initial(const char
>>> *type)
>>> g_str_equal(type, "filter-dump") ||
>>> g_str_equal(type, "filter-mirror") ||
>>> g_str_equal(type, "filter-redirector") ||
>>> - g_str_equal(type, "colo-compare")) {
>>> + g_str_equal(type, "colo-compare") ||
>>> + g_str_equal(type, "filter-rewriter")) {
>>
>> So this makes the patch can't be applied cleanly on master.
>
> Yes,filter-rewriter based on colo-base in colo-compare...
> So, should we make colo-base be a independent patch set?
> Now, colo-base used by colo-compare and filter-rewriter.
>
At least the codes in this series is pretty independent, so there's no
need I think.
>>
>> And I think we don't want to manually compare 100 kinds of filters in
>> the future. How about doing something better, e.g:
>>
>> - introduce something like filter_register_type()
>> - recored the name of the type in a list
>> - iterate it here
>>
>> ?
>>
>
> Maybe we need do this after colo-compare and filter-rewriter be merged.
> and make filter-dump and other filter all in this type.
>
> Thanks
> Zhang Chen
Yes.
>
>>> return false;
>>> }
>>
>>
>>
>> .
next prev parent reply other threads:[~2016-07-04 8:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-02 6:22 [Qemu-devel] [RFC PATCH V2 0/3] filter-rewriter: introduce filter-rewriter Zhang Chen
2016-07-02 6:22 ` [Qemu-devel] [RFC PATCH V2 1/3] filter-rewriter: introduce filter-rewriter initialization Zhang Chen
2016-07-04 2:49 ` Jason Wang
2016-07-04 7:42 ` Zhang Chen
2016-07-04 8:28 ` Jason Wang [this message]
2016-07-02 6:22 ` [Qemu-devel] [RFC PATCH V2 2/3] filter-rewriter: track connection and parse packet Zhang Chen
2016-07-04 3:04 ` Jason Wang
2016-07-04 7:47 ` Zhang Chen
2016-07-04 8:29 ` Jason Wang
2016-07-02 6:22 ` [Qemu-devel] [RFC PATCH V2 3/3] filter-rewriter: rewrite tcp packet to keep secondary connection Zhang Chen
2016-07-04 3:16 ` Jason Wang
2016-07-04 8:59 ` Zhang Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=577A1E2B.6020002@redhat.com \
--to=jasowang@redhat.com \
--cc=dgilbert@redhat.com \
--cc=eddie.dong@intel.com \
--cc=lizhijian@cn.fujitsu.com \
--cc=qemu-devel@nongnu.org \
--cc=wency@cn.fujitsu.com \
--cc=zhang.zhanghailiang@huawei.com \
--cc=zhangchen.fnst@cn.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.