qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v11 09/12] netfilter: add a netbuffer filter


From: Yang Hongyang
Subject: Re: [Qemu-devel] [PATCH v11 09/12] netfilter: add a netbuffer filter
Date: Fri, 25 Sep 2015 16:22:15 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0



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 <address@hidden> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]