From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=60035 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OxcmE-0005H6-0M for qemu-devel@nongnu.org; Mon, 20 Sep 2010 05:35:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OxcmC-0001q2-LI for qemu-devel@nongnu.org; Mon, 20 Sep 2010 05:35:09 -0400 Received: from mtagate5.de.ibm.com ([195.212.17.165]:40884) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OxcmC-0001pl-Cx for qemu-devel@nongnu.org; Mon, 20 Sep 2010 05:35:08 -0400 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate5.de.ibm.com (8.13.1/8.13.1) with ESMTP id o8K9Z5n1022293 for ; Mon, 20 Sep 2010 09:35:05 GMT Received: from d12av01.megacenter.de.ibm.com (d12av01.megacenter.de.ibm.com [9.149.165.212]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o8K9YwVZ4071554 for ; Mon, 20 Sep 2010 11:35:05 +0200 Received: from d12av01.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av01.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id o8K9Ywjh022849 for ; Mon, 20 Sep 2010 11:34:58 +0200 Date: Mon, 20 Sep 2010 10:34:57 +0100 From: Stefan Hajnoczi Subject: Re: [Qemu-devel] [PATCH] e1000: Pad short frames to minimum size (60 bytes) Message-ID: <20100920093457.GC2376@stefan-thinkpad.transitives.com> References: <1284842625-13920-1-git-send-email-stefanha@linux.vnet.ibm.com> <20100918212710.GB3981@laped.lan> <4C972060.7030002@redhat.com> <20100920090337.GB618@edde.se.axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100920090337.GB618@edde.se.axis.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Edgar E. Iglesias" Cc: Kevin Wolf , Stefan Hajnoczi , 638955@bugs.launchpad.net, qemu-devel@nongnu.org, "Michael S. Tsirkin" On Mon, Sep 20, 2010 at 11:03:37AM +0200, Edgar E. Iglesias wrote: > On Mon, Sep 20, 2010 at 10:50:40AM +0200, Kevin Wolf wrote: > > Am 19.09.2010 08:36, schrieb Stefan Hajnoczi: > > > On Sat, Sep 18, 2010 at 10:27 PM, Edgar E. Iglesias > > > wrote: > > >> This doesn't look right. AFAIK, MAC's dont pad on receive. > > > > > > I agree. NICs that do padding will do it on transmit, not receive. > > > Anything coming in on the wire should already have the minimum length. > > > > > > In QEMU that isn't true today and that's why rtl8139, pcnet, and > > > ne2000 already do this same padding. This patch is the smallest > > > change to cover e1000. > > > > What's the reason that it isn't true in QEMU today? Shouldn't we fix > > these problems rather than making device emulations incorrect to > > compensate for it? > > Yes we should, I agree. Does someone with more knowledge for QEMU networking than me want to take a stab at it? Stefan