]> Git Repo - qemu.git/blobdiff - hw/xen_nic.c
g_malloc(0) and g_malloc0(0) return NULL; simplify
[qemu.git] / hw / xen_nic.c
index 8b79bfb73ebf29eccd3c7a9eb5af23589305c578..dc12110dba7ea5ea852d20114b2a093983e61341 100644 (file)
 #include <sys/wait.h>
 
 #include "hw.h"
-#include "net.h"
+#include "net/net.h"
 #include "net/checksum.h"
 #include "net/util.h"
-#include "qemu-char.h"
 #include "xen_backend.h"
 
 #include <xen/io/netif.h>
@@ -415,6 +414,7 @@ static void net_event(struct XenDevice *xendev)
 {
     struct XenNetDev *netdev = container_of(xendev, struct XenNetDev, xendev);
     net_tx_packets(netdev);
+    qemu_flush_queued_packets(&netdev->nic->nc);
 }
 
 static int net_free(struct XenDevice *xendev)
This page took 0.029403 seconds and 4 git commands to generate.