From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:34371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEfBk-0006bk-JM for qemu-devel@nongnu.org; Tue, 26 Apr 2011 06:08:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEfBj-0006j3-St for qemu-devel@nongnu.org; Tue, 26 Apr 2011 06:08:12 -0400 Received: from mail-bw0-f45.google.com ([209.85.214.45]:37273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEfBj-0006ie-O3 for qemu-devel@nongnu.org; Tue, 26 Apr 2011 06:08:11 -0400 Received: by bwz16 with SMTP id 16so416873bwz.4 for ; Tue, 26 Apr 2011 03:08:10 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1303697435-12542-1-git-send-email-pclouds@gmail.com> From: Nguyen Thai Ngoc Duy Date: Tue, 26 Apr 2011 17:07:40 +0700 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] net: add drop_packets parameter to -net nic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Mark McLoughlin , Anthony Liguori , qemu-devel@nongnu.org On Tue, Apr 26, 2011 at 4:14 PM, Stefan Hajnoczi wrote= : > The behavior you are describing sounds like a bug in QEMU's network > layer. =C2=A0If RX is disabled we should not queue incoming packets. > > Have you looked into fixing QEMU so that the queue is disabled when RX > is disabled? it's in e1000_can_receive(): it can receive if rx is enabled (E1000_RCTL_EN) and has enough buffer, which means if the driver disables rx, packets queue up. Isn't that correct behavior? Sorry I'm new in this area. --=20 Duy