Received: from eggs.gnu.org ([208.118.235.92]:34174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6kJk-0001ql-OS for qemu-devel@nongnu.org; Wed, 29 Aug 2012 11:36:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6kJe-0005QL-RF for qemu-devel@nongnu.org; Wed, 29 Aug 2012 11:36:32 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:65455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6kJe-0005QC-L0 for qemu-devel@nongnu.org; Wed, 29 Aug 2012 11:36:26 -0400 Received: by wibhm2 with SMTP id hm2so611409wib.10 for ; Wed, 29 Aug 2012 08:36:25 -0700 (PDT) Date: Wed, 29 Aug 2012 16:36:23 +0100 From: Stefan Hajnoczi Message-ID: <20120829153623.GC26167@stefanha-thinkpad.localdomain> References: <1345468913-15458-1-git-send-email-stefanha@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1345468913-15458-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH] net: add receive_disabled logic to iov delivery path List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org 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 > --- > net.c | 15 +++++++++++++-- > 1 file changed, 13 insertions(+), 2 deletions(-) Applied to the net tree: https://github.com/stefanha/qemu/commits/net Stefan