aboutsummaryrefslogtreecommitdiff
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-02-22 17:28:49 +0100
committerJohannes Berg <johannes.berg@intel.com>2013-03-06 16:35:45 +0100
commitb8a31c9a5afff257cc5dd637cda5fef03e12d67b (patch)
tree0b8555a584440f1c194b05680339d04b8c0a5107 /net/wireless/nl80211.c
parent9a886586c82aa02cb49f8c85e961595716884545 (diff)
ieee80211: mark 802.11 related structs as being 2-byte aligned
Regardless of what header features they use, or if they align the IP header or not, 802.11 packets from all drivers guarantee a 2-byte alignment (and there's a debug WARN_ON in case they don't). Annotate packet structs with __aligned(2) to allow the compiler to use 16-bit load/store operations on platforms with extremely inefficient unaligned access (e.g. MIPS). This reduces code size and improves performance on affected platforms and causes no binary code change on others. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/nl80211.c')
0 files changed, 0 insertions, 0 deletions