rxfilter_notify() is a generic function for all nics, not only for
virtio_net, so move it to net.c
Signed-off-by: Amos Kong ak...@redhat.com
---
v2: fix the memory leak (Stefan)
---
hw/net/virtio-net.c | 32 +---
include/net/net.h | 2 ++
net/net.c | 22
On Mon, Nov 18, 2013 at 04:20:12PM +0800, Amos Kong wrote:
@@ -967,6 +968,27 @@ void print_net_client(Monitor *mon, NetClientState *nc)
nc-info_str);
}
+void rxfilter_notify(NetClientState *nc, Object *obj)
+{
+QObject *event_data;
+gchar *path =
On Mon, Nov 18, 2013 at 02:25:40PM +0100, Stefan Hajnoczi wrote:
On Mon, Nov 18, 2013 at 04:20:12PM +0800, Amos Kong wrote:
@@ -967,6 +968,27 @@ void print_net_client(Monitor *mon, NetClientState *nc)
nc-info_str);
}
+void rxfilter_notify(NetClientState *nc,
On Mon, Nov 18, 2013 at 09:39:26PM +0800, Amos Kong wrote:
On Mon, Nov 18, 2013 at 02:25:40PM +0100, Stefan Hajnoczi wrote:
On Mon, Nov 18, 2013 at 04:20:12PM +0800, Amos Kong wrote:
@@ -967,6 +968,27 @@ void print_net_client(Monitor *mon, NetClientState
*nc)