• M
    tap: drain queue in tap_send() · 5819c918
    Mark McLoughlin 提交于
    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: NMark McLoughlin <markmc@redhat.com>
    Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
    5819c918
tap.c 11.1 KB