From: Johannes Berg <johannes@sipsolutions.net>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: dsd@gentoo.org, davem@davemloft.net, netdev@vger.kernel.org,
linux-wireless@vger.kernel.org
Subject: Re: wireless vs. alignment requirements
Date: Sat, 24 Nov 2007 09:33:36 +0100 [thread overview]
Message-ID: <1195893216.4149.186.camel@johannes.berg> (raw)
In-Reply-To: <E1IvoID-0006aR-00@gondolin.me.apana.org.au>
[-- Attachment #1: Type: text/plain, Size: 1065 bytes --]
> > Now, the IP stack actually assumes that its header is four-byte aligned
> > (see comment at NET_IP_ALIGN, although it is not said explicitly that
> > the alignment requirement for an IP header is four) so that is actually
> > something for the hardware/firmware (!) to do, for example Broadcom
>
> Good point. In fact IIRC we've always had the policy that drivers
> should do their best to generate aligned packets but it is not a
> requirement since on some platforms it's more important for the DMA
> to be aligned.
We still require four-byte alignment, no?
> So it's up the platform code to fix up any exceptions should they
> show up.
>
> Daniel, what's the specific case that you had in mind with this
> patch?
Well. This goes back to a user reporting unaligned accesses on sparc64.
Davem thought this came from the ether addr comparisons but the user
later reported that the patch from davem didn't fix it, and I think
Daniel just made a sweep over all ether addr comparisons replacing them
with unaligned ones.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
next prev parent reply other threads:[~2007-11-24 8:33 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20071123000922.C44009D4A1F@zog.reactivated.net>
2007-11-23 20:33 ` wireless vs. alignment requirements Johannes Berg
2007-11-24 6:15 ` Herbert Xu
2007-11-24 8:33 ` Johannes Berg [this message]
2007-11-24 13:32 ` Herbert Xu
2007-11-24 13:49 ` Johannes Berg
2007-11-24 13:51 ` David Miller
2007-11-24 14:13 ` Herbert Xu
2007-11-24 20:11 ` Stephen Hemminger
2007-11-24 21:33 ` Johannes Berg
2007-11-25 1:08 ` Herbert Xu
2007-11-25 21:21 ` Stephen Hemminger
2007-11-26 1:38 ` Herbert Xu
2007-11-27 17:16 ` H. Peter Anvin
2007-11-27 17:16 ` H. Peter Anvin
2007-11-27 18:39 ` Stephen Hemminger
2007-11-28 2:42 ` H. Peter Anvin
2007-11-29 13:11 ` Herbert Xu
2007-11-29 17:50 ` H. Peter Anvin
2007-11-30 0:26 ` Herbert Xu
2007-11-30 0:28 ` H. Peter Anvin
2007-11-30 0:34 ` Herbert Xu
2007-11-30 0:41 ` H. Peter Anvin
2007-11-24 21:13 ` Johannes Berg
2007-11-25 1:44 ` Herbert Xu
2007-11-25 11:00 ` Johannes Berg
2007-11-25 11:22 ` Herbert Xu
2007-11-25 13:54 ` Johannes Berg
2007-11-25 14:01 ` Herbert Xu
2007-11-25 17:04 ` Johannes Berg
2007-11-26 1:36 ` Herbert Xu
2007-11-24 13:11 ` Ulrich Kunitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1195893216.4149.186.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=davem@davemloft.net \
--cc=dsd@gentoo.org \
--cc=herbert@gondor.apana.org.au \
--cc=linux-wireless@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).