From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZS8N3-0008NJ-IB for qemu-devel@nongnu.org; Wed, 19 Aug 2015 14:45:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZS8Mz-0000I5-3v for qemu-devel@nongnu.org; Wed, 19 Aug 2015 14:45:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZS8My-0000Hc-V3 for qemu-devel@nongnu.org; Wed, 19 Aug 2015 14:45:53 -0400 Date: Thu, 20 Aug 2015 02:45:47 +0800 From: Fam Zheng Message-ID: <20150819184547.GA6800@dhcp-15-192.nay.redhat.com> References: <1439897142-28072-1-git-send-email-shmulik.ladkani@ravellosystems.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1439897142-28072-1-git-send-email-shmulik.ladkani@ravellosystems.com> Subject: Re: [Qemu-devel] [PATCH] net/vmxnet3: Flush packets when device gets activated List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Shmulik Ladkani , stefanha@redhat.com Cc: Dmitry Fleytman , qemu-devel@nongnu.org On Tue, 08/18 14:25, Shmulik Ladkani wrote: > As of a90a7425cf592a3afeff3eaf32f543b83050ee5c 'tap: Drop tap_can_send' > vmxnet3 (with tap networking) can no longer receive once device is > deactivated. > Alas, as the device is initially "inactive", this brakes vmxnet3 > receive functionality. > > vmxnet3_can_receive() checks its internal 'device_active' flag (among > other tests). > However, as of a90a7425cf, if 'device_active' is false, packets will be > queued by tap_send (at qemu_net_queue_send). > > However, vmxnet3 never flushes the queue, even if the device is later > activated. > > Fix by calling 'qemu_flush_queued_packets()' when vmxnet3 device gets > active. > > Signed-off-by: Shmulik Ladkani Looks like the previous patch to fix this fell between the cracks and never made it to qemu.git? http://patchwork.ozlabs.org/patch/489847/ Stefan, any idea? Fam