From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v4] net: add Faraday FTMAC100 10/100 Ethernet driver Date: Wed, 23 Feb 2011 23:51:29 -0800 (PST) Message-ID: <20110223.235129.02262510.davem@davemloft.net> References: <20110131.203556.193730771.davem@davemloft.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: mirqus@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bhutchings@solarflare.com, eric.dumazet@gmail.com, joe@perches.com, dilinger@queued.net, ratbert@faraday-tech.com To: ratbert.chuang@gmail.com Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Po-Yu Chuang Date: Thu, 24 Feb 2011 15:27:55 +0800 > I guess the problem is because a HW restriction that the rx buffer must be > 64 bits aligned. Since I cannot make rx buffer starts at offset 2 bytes, the > IP header, TCP header and data are not 4 bytes aligned. The performance > drops drastically. I cannot believe that after 20 years of commodity ethernet networking chips were first designed, people are still designing hardware that doesn't do this right. Just emit garbage bytes into the sub-word alignment padding if the chip wants to word align it's DMA writes. Even the 15 year old Dec Tulip chips do this properly.