Received: from eggs.gnu.org ([2001:4830:134:3::10]:53883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0Svd-0003GH-9w for qemu-devel@nongnu.org; Thu, 13 Sep 2018 10:49:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0Sva-0000TJ-Jt for qemu-devel@nongnu.org; Thu, 13 Sep 2018 10:49:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55140) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g0Sva-0000Sz-Dk for qemu-devel@nongnu.org; Thu, 13 Sep 2018 10:49:06 -0400 References: <1536814370-12997-1-git-send-email-zhangckid@gmail.com> From: Eric Blake Message-ID: Date: Thu, 13 Sep 2018 09:49:03 -0500 MIME-Version: 1.0 In-Reply-To: <1536814370-12997-1-git-send-email-zhangckid@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V12-fix 01/19] filter-rewriter: Add TCP state machine and fix memory leak in connection_track_table List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Zhang Chen , qemu-devel@nongnu.org, Paolo Bonzini , Juan Quintela , "Dr . David Alan Gilbert" , Jason Wang , Markus Armbruster Cc: zhanghailiang , Li Zhijian , Zhang Chen On 9/12/18 11:52 PM, Zhang Chen wrote: > We add almost full TCP state machine in filter-rewriter, except > TCPS_LISTEN and some simplify in VM active close FIN states. > The reason for this simplify job is because guest kernel will track > the TCP status and wait 2MSL time too, if client resend the FIN packet, > guest will resend the last ACK, so we needn't wait 2MSL time in filter-rewriter. > > After a net connection is closed, we didn't clear its releated resources s/releated/related/ > in connection_track_table, which will lead to memory leak. > > Let't track the state of net connection, if it is closed, its related s/Let't/Let's/ > resources will be cleared up. > > Signed-off-by: zhanghailiang > Signed-off-by: Zhang Chen > Signed-off-by: Zhang Chen Should both of these last two S-o-b be present? -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org