Received: from eggs.gnu.org ([2001:4830:134:3::10]:41391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSEvT-0005mn-3C for qemu-devel@nongnu.org; Tue, 26 Jul 2016 22:50:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSEvN-00032m-Vk for qemu-devel@nongnu.org; Tue, 26 Jul 2016 22:50:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSEvN-00032S-Pz for qemu-devel@nongnu.org; Tue, 26 Jul 2016 22:50:21 -0400 References: <1467714580-17581-1-git-send-email-zhangchen.fnst@cn.fujitsu.com> From: Jason Wang Message-ID: Date: Wed, 27 Jul 2016 10:50:13 +0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC PATCH V3 0/3] filter-rewriter: introduce filter-rewriter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Zhang Chen , qemu devel Cc: "eddie . dong" , Li Zhijian On 2016=E5=B9=B407=E6=9C=8827=E6=97=A5 10:32, Zhang Chen wrote: > Hi~ all~~ > > Anyone have some comments for this series? Will have a look at this. Btw. I wonder how this is tested, do we need a unit test for this? > > We need more comments to improve COLO codes. > > > Thanks > > Zhang Chen > > > On 07/05/2016 06:29 PM, Zhang Chen wrote: >> Filter-rewriter is a part of COLO project. >> So this patch set depend on colo-compare. Interesting, I thought it can co-work with comparing, and the=20 communication were done through socket now. So I think technically the=20 filter itself could work without COLO? >> It will rewrite some of secondary packet to make >> secondary guest's connection established successfully. >> In this module we will rewrite tcp packet's ack to the secondary >> from primary,and rewrite tcp packet's seq to the primary from >> secondary. >> >> v3: >> - fix typo >> - add conn->syn_flag >> - add some comments >> - remove conn_list_lock >> - fix offset set bug I think you can remove RFC in the next version so we can try to merge it=20 after one or several other iterations. Thanks >> >> v2: >> - add more comments about packet flows >> - add some trace-event >> - add seq offset ( =3D secondary_seq - primary_seq) >> >> v1: >> - initial patch >> >> Zhang Chen (3): >> filter-rewriter: introduce filter-rewriter initialization >> filter-rewriter: track connection and parse packet >> filter-rewriter: rewrite tcp packet to keep secondary connection >> >> net/Makefile.objs | 1 + >> net/colo-base.c | 2 + >> net/colo-base.h | 7 ++ >> net/filter-rewriter.c | 262=20 >> ++++++++++++++++++++++++++++++++++++++++++++++++++ >> qemu-options.hx | 13 +++ >> trace-events | 5 + >> vl.c | 3 +- >> 7 files changed, 292 insertions(+), 1 deletion(-) >> create mode 100644 net/filter-rewriter.c >> >