From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1affLx-0006zK-Hr for qemu-devel@nongnu.org; Mon, 14 Mar 2016 23:09:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1affLt-0000Ms-I5 for qemu-devel@nongnu.org; Mon, 14 Mar 2016 23:09:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1affLt-0000Mn-CN for qemu-devel@nongnu.org; Mon, 14 Mar 2016 23:08:57 -0400 References: <1457345011-17645-1-git-send-email-zhangchen.fnst@cn.fujitsu.com> <56DFD89E.4040508@cn.fujitsu.com> From: Jason Wang Message-ID: <56E77CC1.7050307@redhat.com> Date: Tue, 15 Mar 2016 11:08:49 +0800 MIME-Version: 1.0 In-Reply-To: <56DFD89E.4040508@cn.fujitsu.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] net/filter: rename qemu_netfilter_pass_to_next() to qemu_netfilter_iterate() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Li Zhijian , Yang Hongyang , Zhang Chen Cc: Gui jianfeng , "eddie.dong" , zhanghailiang , "Dr. David Alan Gilbert" , qemu devel On 03/09/2016 04:02 PM, Li Zhijian wrote: > > > On 03/08/2016 04:04 PM, Yang Hongyang wrote: >> Hi Chen, >> >> What's the motivation that you want to change this name? The >> function actually is not >> intent to iterate every filter. > > Right. but this function isn't always pass packet to *a* next filter. > Actually, it iterates filters until the packet is stolen(filter > receiving handler return non-zero). > In other words, packet could be handled by several filters at this > function. > > BTW, it's difficult to determine what name is better. > > Thanks > Li Zhijian Right, so I was considering a better function name (though I'm not a native English speaker). But I agree qemu_netfilter_iterate() is not perfect too, may need more thought.