From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Hutchings Subject: Re: alignment faults in 3.6 Date: Fri, 12 Oct 2012 16:04:14 +0100 Message-ID: <1350054254.2819.3.camel@bwh-desktop.uk.solarflarecom.com> References: <20121005082439.GF4625@n2100.arm.linux.org.uk> <201210120811.43290.arnd@arndb.de> <20121012090321.GA21164@n2100.arm.linux.org.uk> <20121012110750.GE21164@n2100.arm.linux.org.uk> <20121012114443.GG21164@n2100.arm.linux.org.uk> <1350043692.21172.11815.camel@edumazet-glaptop> <20121012142254.GG5453@kvack.org> <1350053300.21172.12319.camel@edumazet-glaptop> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Benjamin LaHaise , Russell King - ARM Linux , =?ISO-8859-1?Q?M=E5ns_Rullg=E5rd?= , Arnd Bergmann , , David Laight , , Jon Masters To: Eric Dumazet Return-path: Received: from webmail.solarflare.com ([12.187.104.25]:21872 "EHLO ocex02.SolarFlarecom.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756522Ab2JLPES (ORCPT ); Fri, 12 Oct 2012 11:04:18 -0400 In-Reply-To: <1350053300.21172.12319.camel@edumazet-glaptop> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, 2012-10-12 at 16:48 +0200, Eric Dumazet wrote: > On Fri, 2012-10-12 at 10:22 -0400, Benjamin LaHaise wrote: > > On Fri, Oct 12, 2012 at 02:08:12PM +0200, Eric Dumazet wrote: > > > So yes, we built network stack with the prereq that IP headers are > > > aligned, but unfortunately many developers use x86 which doesnt care, so > > > its possible some bugs are added. > > > > x86 does have an alignment check flag that can be set in the flags register. > > Somehow, I doubt anyone would be willing to walk through all the noise the > > faults would likely trigger. > > If this can be mapped to an event that can be used by perf tool, that > might be useful ? AC was so useless that it has now been reallocated to use by SMAP . Ben. -- Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.