[RFC v4 1/5] net/filter: allow filters on vhost netdevs

Cindy Lu posted 5 patches 4 days, 13 hours ago
[RFC v4 1/5] net/filter: allow filters on vhost netdevs
Posted by Cindy Lu 4 days, 13 hours ago
netfilter_complete() currently rejects netdev backends backed by
vhost_net and returns "Vhost is not supported". The AF_PACKET
capture/inject chardev work still needs filter objects to sit on top
of the existing netdev when the tap queue is owned by vhost, so
remove this

Signed-off-by: Cindy Lu <lulu@redhat.com>
---
 net/filter.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/net/filter.c b/net/filter.c
index 76345c1a9d..bb59785911 100644
--- a/net/filter.c
+++ b/net/filter.c
@@ -13,7 +13,6 @@
 
 #include "net/filter.h"
 #include "net/net.h"
-#include "net/vhost_net.h"
 #include "qom/object_interfaces.h"
 #include "qemu/iov.h"
 #include "qemu/module.h"
@@ -254,11 +253,6 @@ static void netfilter_complete(UserCreatable *uc, Error **errp)
         return;
     }
 
-    if (get_vhost_net(ncs[0])) {
-        error_setg(errp, "Vhost is not supported");
-        return;
-    }
-
     if (strcmp(nf->position, "head") && strcmp(nf->position, "tail")) {
         Object *container;
         Object *obj;
-- 
2.52.0