Received: from eggs.gnu.org ([2001:4830:134:3::10]:60238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZS8T1-00057N-6S for qemu-devel@nongnu.org; Wed, 19 Aug 2015 14:52:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZS8Sx-0003sY-T0 for qemu-devel@nongnu.org; Wed, 19 Aug 2015 14:52:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZS8Sx-0003sT-NU for qemu-devel@nongnu.org; Wed, 19 Aug 2015 14:52:03 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 2E7CC36B1F1 for ; Wed, 19 Aug 2015 18:52:03 +0000 (UTC) Date: Thu, 20 Aug 2015 02:52:02 +0800 From: Fam Zheng Message-ID: <20150819185202.GA8816@dhcp-15-192.nay.redhat.com> References: <1435885721-10434-1-git-send-email-famz@redhat.com> <20150703104138.GA15942@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150703104138.GA15942@stefanha-thinkpad.redhat.com> Subject: Re: [Qemu-devel] [PATCH v2] ne2000: Drop ne2000_can_receive List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: jasowang@redhat.com, qemu-devel@nongnu.org On Fri, 07/03 11:41, Stefan Hajnoczi wrote: > On Fri, Jul 03, 2015 at 09:08:41AM +0800, Fam Zheng wrote: > > This moves the behavior of ne2000_can_receive to ne2000_receive. The > > logic is when the NIC is stopped we drop the packet, when the buffer is > > full we queue it and try flush later. > > > > ne2000_buffer_full is determined by s->curpag, s->boundary, s->start and > > s->stop. Add a flush in ne2000_ioport_write as they are all updated > > there, except the advancing of s->curpag in ne2000_receive where > > ne2000_buffer_full is already false. > > > > Signed-off-by: Fam Zheng > > --- > > hw/net/ne2000-isa.c | 1 - > > hw/net/ne2000.c | 27 ++++++++++++++++----------- > > 2 files changed, 16 insertions(+), 12 deletions(-) > > Thanks, applied to my net tree: > https://github.com/stefanha/qemu/commits/net > Hi Stefan, I just notice there is still no pull req for this? Fam