mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 22:02:28 +00:00
mac80211: fix fast_tx header alignment
The header field is defined as u8[] but also accessed as struct
ieee80211_hdr. Enforce an alignment of 2 to prevent unnecessary
unaligned accesses, which can be very harmful for performance on many
platforms.
Fixes: e495c24731
("mac80211: extend fast-xmit for more ciphers")
Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
fe7a7c5762
commit
6fe04128f1
@ -280,7 +280,7 @@ struct ieee80211_fast_tx {
|
|||||||
u8 sa_offs, da_offs, pn_offs;
|
u8 sa_offs, da_offs, pn_offs;
|
||||||
u8 band;
|
u8 band;
|
||||||
u8 hdr[30 + 2 + IEEE80211_FAST_XMIT_MAX_IV +
|
u8 hdr[30 + 2 + IEEE80211_FAST_XMIT_MAX_IV +
|
||||||
sizeof(rfc1042_header)];
|
sizeof(rfc1042_header)] __aligned(2);
|
||||||
|
|
||||||
struct rcu_head rcu_head;
|
struct rcu_head rcu_head;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user