From: David Miller <davem@davemloft.net>
To: chunkeey@googlemail.com
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org
Subject: Re: pull request: wireless-next-2.6 2010-09-21
Date: Wed, 22 Sep 2010 13:57:37 -0700 (PDT) [thread overview]
Message-ID: <20100922.135737.70200377.davem@davemloft.net> (raw)
In-Reply-To: <201009222246.31687.chunkeey@googlemail.com>
From: Christian Lamparter <chunkeey@googlemail.com>
Date: Wed, 22 Sep 2010 22:46:30 +0200
> But the driver can try to minimizes the access to unaligned elements,
> by using temporary variables (so the value needs to be accessed only
> once). In fact that's already done, the only room for improvement
> would be in carl9170_tx_prepare (temporary u16 for mac_control,
> u8 super_misc, u8 rate_info).
I think you're going for %20 improvement when there's a %100 one
sitting right under your nose. :-)
You know these things will always be aligned properly, so why not just
declare this "u16 + 2 u8" thing as a proper endiannized "u32", load
that, and mask out the parts that you need.
And any struct that has only u32 and larger objects need not have
any __packed attribute at all.
prev parent reply other threads:[~2010-09-22 20:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-21 20:17 pull request: wireless-next-2.6 2010-09-21 John W. Linville
2010-09-22 1:36 ` David Miller
2010-09-22 9:58 ` Christian Lamparter
2010-09-22 10:01 ` Johannes Berg
2010-09-22 10:27 ` Christian Lamparter
2010-09-22 10:34 ` Johannes Berg
2010-09-22 11:09 ` Christian Lamparter
2010-09-22 16:22 ` David Miller
2010-09-22 18:54 ` Christian Lamparter
2010-09-22 19:19 ` David Miller
2010-09-22 20:46 ` Christian Lamparter
2010-09-22 20:57 ` David Miller [this message]
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=20100922.135737.70200377.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=chunkeey@googlemail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.