From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfOGz-0005ic-6W for qemu-devel@nongnu.org; Fri, 25 Sep 2015 04:22:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfOGu-0002q0-CQ for qemu-devel@nongnu.org; Fri, 25 Sep 2015 04:22:29 -0400 Received: from [59.151.112.132] (port=64925 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfOGu-0002p1-0Z for qemu-devel@nongnu.org; Fri, 25 Sep 2015 04:22:24 -0400 Message-ID: <56050437.9060605@cn.fujitsu.com> Date: Fri, 25 Sep 2015 16:22:15 +0800 From: Yang Hongyang MIME-Version: 1.0 References: <1442405768-23019-1-git-send-email-yanghy@cn.fujitsu.com> <1442405768-23019-10-git-send-email-yanghy@cn.fujitsu.com> <87si64qiyr.fsf@blackfin.pond.sub.org> <5604FFBB.5080701@cn.fujitsu.com> <5605035B.8070305@redhat.com> In-Reply-To: <5605035B.8070305@redhat.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v11 09/12] netfilter: add a netbuffer filter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth , Markus Armbruster Cc: jasowang@redhat.com, stefanha@redhat.com, qemu-devel@nongnu.org, lizhijian@cn.fujitsu.com, zhang.zhanghailiang@huawei.com On 09/25/2015 04:18 PM, Thomas Huth wrote: > On 25/09/15 10:03, Yang Hongyang wrote: >> >> >> On 09/24/2015 05:12 PM, Markus Armbruster wrote: >>> Yang Hongyang writes: >> [...] >>>> diff --git a/vl.c b/vl.c >>>> index ec589e2..3cf89d5 100644 >>>> --- a/vl.c >>>> +++ b/vl.c >>>> @@ -2794,7 +2794,12 @@ static bool object_create_initial(const char >>>> *type) >>>> if (g_str_equal(type, "rng-egd")) { >>>> return false; >>>> } >>>> - /* TODO: return false for concrete netfilters */ >>>> + >>>> + /* return false for concrete netfilters */ >>> >>> I find this comment useless, please drop it :) >> >> This might be useful for reminding others who wants to implement other >> filters. > > I think the comment should explain why the code is return false here, > not what the code is doing (which is obvious). So maybe something like: > > /* > * netfilters require that the corresponding > * netdevs are already existing > */ Makes more sense, thanks:) > > ? > > Thomas > > . > -- Thanks, Yang.