diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-10-15 18:03:30 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-09 21:13:24 (GMT) |
commit | e0e9bc82fb0813fd353b0abbba0f1d6a680cc77c (patch) | |
tree | d81c63dd8cb99cc29a6f53f5b5fca1eea860ddc8 /drivers/net/wireless/ath/ath9k/mac.h | |
parent | 45684c75f9aa80eb477465bddcf79c9ad95206c7 (diff) | |
download | linux-fsl-qoriq-e0e9bc82fb0813fd353b0abbba0f1d6a680cc77c.tar.xz |
ath9k_hw: optimize tx status descriptor processing
Disassembly shows, that at least on MIPS, the compiler generates a lot of
memory accesses to the same location in the descriptor field parsing.
Since it is operating on uncached memory, this can be quite expensive in
this hot path.
Change the code a bit to help the compiler optimize it properly, and get
rid of some unused fields in the ath_tx_status struct.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/mac.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/mac.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/mac.h b/drivers/net/wireless/ath/ath9k/mac.h index 538c676..fdc2507 100644 --- a/drivers/net/wireless/ath/ath9k/mac.h +++ b/drivers/net/wireless/ath/ath9k/mac.h @@ -104,13 +104,11 @@ struct ath_tx_status { u32 ts_tstamp; u16 ts_seqnum; u8 ts_status; - u8 ts_ratecode; u8 ts_rateindex; int8_t ts_rssi; u8 ts_shortretry; u8 ts_longretry; u8 ts_virtcol; - u8 ts_antenna; u8 ts_flags; int8_t ts_rssi_ctl0; int8_t ts_rssi_ctl1; @@ -121,7 +119,6 @@ struct ath_tx_status { u8 qid; u16 desc_id; u8 tid; - u8 pad[2]; u32 ba_low; u32 ba_high; u32 evm0; |