Return-Path: Date: Thu, 11 Nov 2010 09:52:57 +0100 From: Tobias Klauser Message-ID: <20101111085257.GE10886@distanz.ch> References: <12893476522148@site> <201011101117.03979.lindner_marek@yahoo.de> <20101110160455.GC10561@suse.de> <201011101746.42904.sven.eckelmann@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201011101746.42904.sven.eckelmann@gmx.de> Subject: Re: [B.A.T.M.A.N.] patch "staging: batman-adv: Use linux/etherdevice.h address helper functions" added to staging tree Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sven Eckelmann Cc: b.a.t.m.a.n@lists.open-mesh.org, Marek Lindner , Greg KH , siwu@hrz.tu-chemnitz.de On 2010-11-10 at 17:46:37 +0100, Sven Eckelmann wrote: > > compare_ether_addr uses a two byte pointer to access 3x two bytes. This > > makes it necessary to have all those 3 bytes aligned to 2 byte boundaries. > [correction sent later: "6x two bytes aligned to 2 byte boundaries"] > > Otherwise the compiler has to generate special instructions on > > architectures which don't support loads on non-aligned addresses. Usually > > he doesn't do it unless he has some indications that it is necessary > > (__attribute__ ((packed)) for example). > > > > There is also documentation available on that topic in > > Documentation/unaligned-memory-access.txt > > > > And maybe it is good to use is_broadcast_ether_addr, but leave > > compare_ether_addr part open (or prove that we always have those two > > operands correctly aligned). > [...] > > None of that happened yet. And yes, this wasn't the last mail we sent to him > to get some response - no answer till now. I'll send an updated patch, leaving out the compare_ether_addr part. Cheers Tobias