diff options
author | Fam Zheng <famz@redhat.com> | 2015-06-04 14:45:15 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-06-12 13:26:21 +0100 |
commit | e8dd1d9c396104f0fac4b39a701143df49df2a74 (patch) | |
tree | 5be543f08b517a4df92367a848263e7873195534 /net/socket.c | |
parent | 95b1416ae93106923f733941e52dfe55c4318643 (diff) | |
download | qemu-e8dd1d9c396104f0fac4b39a701143df49df2a74.zip qemu-e8dd1d9c396104f0fac4b39a701143df49df2a74.tar.gz qemu-e8dd1d9c396104f0fac4b39a701143df49df2a74.tar.bz2 |
netmap: Drop netmap_can_send
This callback is called by main loop before polling s->fd, if it returns
false, the fd will not be polled in this iteration.
This is redundant with checks inside read callback. After this patch,
the data will be copied from s->fd to s->iov when it arrives. If the
device can't receive, it will be queued to incoming_queue, and when the
device status changes, this queue will be flushed.
Also remove the qemu_can_send_packet() check in netmap_send. If it's
true, we are good; if it's false, the qemu_sendv_packet_async would
return 0 and read poll will be disabled until netmap_send_completed is
called.
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1433400324-7358-5-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions