Re: [Qemu-devel] [PATCH v2 15/21] char-udp: flush as much buffer as possible

2017-02-28 Thread Philippe Mathieu-Daudé
On 02/27/2017 10:41 AM, Marc-André Lureau wrote: Instead of flushing the buffer byte by byte, call qemu_chr_be_write() with as much byte possible accepted by the front-end. Factor out buffer flushing in a common function udp_chr_flush_buffer(). Signed-off-by: Marc-André Lureau Reviewed-by: P

[Qemu-devel] [PATCH v2 15/21] char-udp: flush as much buffer as possible

2017-02-27 Thread Marc-André Lureau
Instead of flushing the buffer byte by byte, call qemu_chr_be_write() with as much byte possible accepted by the front-end. Factor out buffer flushing in a common function udp_chr_flush_buffer(). Signed-off-by: Marc-André Lureau --- chardev/char-udp.c | 26 +++--- 1 file cha