summaryrefslogtreecommitdiffstats
path: root/hw/virtio-net.c
diff options
context:
space:
mode:
authorMark McLoughlin2009-10-27 19:16:39 +0100
committerAnthony Liguori2009-11-09 15:43:02 +0100
commit5819c91806911e0976a187cf908b429ecb138da5 (patch)
treeb93a5c2cf4ebc2140f033dd08661fdf9b64ac2b6 /hw/virtio-net.c
parentvirtio-net: split the has_buffers() logic from can_receive() (diff)
downloadqemu-5819c91806911e0976a187cf908b429ecb138da5.tar.gz
qemu-5819c91806911e0976a187cf908b429ecb138da5.tar.xz
qemu-5819c91806911e0976a187cf908b429ecb138da5.zip
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>
Diffstat (limited to 'hw/virtio-net.c')
0 files changed, 0 insertions, 0 deletions