diff options
| author | Fam Zheng | 2015-06-04 08:45:15 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2015-06-12 14:26:21 +0200 |
| commit | e8dd1d9c396104f0fac4b39a701143df49df2a74 (patch) | |
| tree | 5be543f08b517a4df92367a848263e7873195534 /linux-headers/linux | |
| parent | l2tpv3: Drop l2tpv3_can_send (diff) | |
| download | qemu-e8dd1d9c396104f0fac4b39a701143df49df2a74.tar.gz qemu-e8dd1d9c396104f0fac4b39a701143df49df2a74.tar.xz qemu-e8dd1d9c396104f0fac4b39a701143df49df2a74.zip | |
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 'linux-headers/linux')
0 files changed, 0 insertions, 0 deletions
