qemu-e2k/net
Mark McLoughlin 5819c91806 tap: drain queue in tap_send()
Okay, let's try re-enabling the drain-entire-queue behaviour, with a
difference - before each subsequent packet, use qemu_can_send_packet()
to check that we can send it. This is similar to how we check before
polling the tap fd and avoids having to drop a packet if the receiver
cannot handle it.

This patch should be a performance improvement since we no longer have
to go through the mainloop for each packet.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2009-11-09 08:43:02 -06:00
..
checksum.c net: move net-checksum.c under net/ 2009-10-30 08:39:26 -05:00
checksum.h net: move net-checksum.c under net/ 2009-10-30 08:39:26 -05:00
queue.c net/queue: queue packets even if sender doesn't supply a callback 2009-11-09 08:43:02 -06:00
queue.h net: move net-queue.[ch] under net/ 2009-10-30 08:39:26 -05:00
tap-aix.c net: move UFO support detection to tap-linux.c 2009-10-30 08:39:29 -05:00
tap-bsd.c Unbreak tap compilation on OS X 2009-10-30 16:38:15 -05:00
tap-linux.c net: move UFO support detection to tap-linux.c 2009-10-30 08:39:29 -05:00
tap-linux.h Unbreak Linux build 2009-10-30 16:45:20 -05:00
tap-solaris.c net: move UFO support detection to tap-linux.c 2009-10-30 08:39:29 -05:00
tap-win32.c net: move more stuff into net/tap-win32.c, add net/tap.h 2009-10-30 08:39:27 -05:00
tap.c tap: drain queue in tap_send() 2009-11-09 08:43:02 -06:00
tap.h net: move UFO support detection to tap-linux.c 2009-10-30 08:39:29 -05:00