From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY2Jk-0007qm-J1 for qemu-devel@nongnu.org; Mon, 22 Feb 2016 21:03:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aY2Jh-00010H-EB for qemu-devel@nongnu.org; Mon, 22 Feb 2016 21:03:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37399) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY2Jh-0000zT-9R for qemu-devel@nongnu.org; Mon, 22 Feb 2016 21:03:09 -0500 References: <1455783009-10017-1-git-send-email-zhangchen.fnst@cn.fujitsu.com> From: Jason Wang Message-ID: <56CBBDD4.3000203@redhat.com> Date: Tue, 23 Feb 2016 10:03:00 +0800 MIME-Version: 1.0 In-Reply-To: <1455783009-10017-1-git-send-email-zhangchen.fnst@cn.fujitsu.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V4 0/2] net/filter-mirror:add filter-mirror and unit test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Zhang Chen , qemu devel Cc: Li Zhijian , Gui jianfeng , "eddie.dong" , zhanghailiang , "Dr. David Alan Gilbert" , Yang Hongyang On 02/18/2016 04:10 PM, Zhang Chen wrote: > From: ZhangChen > > Filter-mirror is a netfilter plugin. > It gives qemu the ability to mirror > packets to a chardev. > > > v4: > - Address Jason's comments. > > v3: > - Add filter-mirror unit test according > to Jason's comments > - Address zhanghailiang's comments. > - Address Jason's comments. > > v2: > - Address zhanghailiang's comments. > - Address Eric Blake's comments. > - Address Yang Hongyang's comments. > - Address Dave's comments. > > v1: > initial patch. > > > ZhangChen (2): > net/filter-mirror:Add filter-mirror > tests/test-filter-mirror:add filter-mirror unit test > > net/Makefile.objs | 1 + > net/filter-mirror.c | 178 +++++++++++++++++++++++++++++++++++++++++++++ > qemu-options.hx | 4 + > tests/.gitignore | 1 + > tests/Makefile | 2 + > tests/test-filter-mirror.c | 89 +++++++++++++++++++++++ > vl.c | 3 +- > 7 files changed, 277 insertions(+), 1 deletion(-) > create mode 100644 net/filter-mirror.c > create mode 100644 tests/test-filter-mirror.c > Looks good overall. Just few nits, see individual patches. Thanks