qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] net: add receive_disabled logic to iov delivery


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH] net: add receive_disabled logic to iov delivery path
Date: Wed, 29 Aug 2012 16:36:23 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Aug 20, 2012 at 02:21:53PM +0100, Stefan Hajnoczi wrote:
> 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 <address@hidden>
> ---
>  net.c |   15 +++++++++++++--
>  1 file changed, 13 insertions(+), 2 deletions(-)

Applied to the net tree:
https://github.com/stefanha/qemu/commits/net

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]