aboutsummaryrefslogtreecommitdiff
path: root/cutils.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-08-17 21:16:42 +0100
committerStefan Hajnoczi <stefanha@gmail.com>2012-09-14 08:40:32 +0100
commitc67f5dc10573687497f0f5c3aec19b15c35c63d7 (patch)
tree9a2d831697dde8edb280002c4d640700a845601e /cutils.c
parent1069985fb132cd4324fc02d371f1e61492a1823f (diff)
downloadqemu-c67f5dc10573687497f0f5c3aec19b15c35c63d7.zip
qemu-c67f5dc10573687497f0f5c3aec19b15c35c63d7.tar.gz
qemu-c67f5dc10573687497f0f5c3aec19b15c35c63d7.tar.bz2
net: add receive_disabled logic to iov delivery path
This patch adds the missing NetClient->receive_disabled logic in the sendv delivery code path. It seems that commit 893379efd0e1b84ceb0c42a713293f3dbd27b1bd ("net: disable receiving if client returns zero") only added the logic to qemu_deliver_packet() and not qemu_deliver_packet_iov(). The receive_disabled flag should be automatically set when .receive(), .receive_raw(), or .receive_iov() return 0. No further packets will be delivered to the NetClient until the receive_disabled flag is cleared again by calling qemu_flush_queued_packets(). Typically the NetClient will wait until its file descriptor becomes writable and then invoke qemu_flush_queued_packets() to resume transmission. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'cutils.c')
0 files changed, 0 insertions, 0 deletions