/* The fd_write() callback, invoked if the fd is marked as writable after a poll. Unregister the handler and flush any buffered packets.  */
static void netmap_writable(void *opaque)
/* The fd_write() callback, invoked if the fd is marked as writable after a poll. Unregister the handler and flush any buffered packets.  */
static void netmap_writable(void *opaque)
{
    NetmapState *s = opaque;
    netmap_write_poll(s, false);
    qemu_flush_queued_packets(&s->nc);
}