diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2009-04-26 10:08:30 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-06 15:14:49 -0400 |
commit | 9eb4e21e289beba9cfe34f24920eee83c144e62f (patch) | |
tree | ab2da2b66f308e94159742b52a126787a8e2d1a5 /drivers/net/wireless/rt2x00/rt2x00lib.h | |
parent | bbb33881ae5bfe4197a005dc03b29b7dcc07fa28 (diff) |
rt2x00: Move iv_len into tx descriptor data
By placing the iv_len into the tx descriptor data and
by passing this data to the crypto IV handlers we can
save multiple calls to ieee80211_get_hdrlen_from_skb()
and some if-statements when copying/removing the IV data
from the outgoing frame.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00lib.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00lib.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h index a631613177d0..af3c47bd43bd 100644 --- a/drivers/net/wireless/rt2x00/rt2x00lib.h +++ b/drivers/net/wireless/rt2x00/rt2x00lib.h | |||
@@ -295,8 +295,10 @@ void rt2x00crypto_create_tx_descriptor(struct queue_entry *entry, | |||
295 | struct txentry_desc *txdesc); | 295 | struct txentry_desc *txdesc); |
296 | unsigned int rt2x00crypto_tx_overhead(struct rt2x00_dev *rt2x00dev, | 296 | unsigned int rt2x00crypto_tx_overhead(struct rt2x00_dev *rt2x00dev, |
297 | struct sk_buff *skb); | 297 | struct sk_buff *skb); |
298 | void rt2x00crypto_tx_copy_iv(struct sk_buff *skb, unsigned int iv_len); | 298 | void rt2x00crypto_tx_copy_iv(struct sk_buff *skb, |
299 | void rt2x00crypto_tx_remove_iv(struct sk_buff *skb, unsigned int iv_len); | 299 | struct txentry_desc *txdesc); |
300 | void rt2x00crypto_tx_remove_iv(struct sk_buff *skb, | ||
301 | struct txentry_desc *txdesc); | ||
300 | void rt2x00crypto_tx_insert_iv(struct sk_buff *skb); | 302 | void rt2x00crypto_tx_insert_iv(struct sk_buff *skb); |
301 | void rt2x00crypto_rx_insert_iv(struct sk_buff *skb, unsigned int align, | 303 | void rt2x00crypto_rx_insert_iv(struct sk_buff *skb, unsigned int align, |
302 | unsigned int header_length, | 304 | unsigned int header_length, |
@@ -319,12 +321,12 @@ static inline unsigned int rt2x00crypto_tx_overhead(struct rt2x00_dev *rt2x00dev | |||
319 | } | 321 | } |
320 | 322 | ||
321 | static inline void rt2x00crypto_tx_copy_iv(struct sk_buff *skb, | 323 | static inline void rt2x00crypto_tx_copy_iv(struct sk_buff *skb, |
322 | unsigned int iv_len) | 324 | struct txentry_desc *txdesc) |
323 | { | 325 | { |
324 | } | 326 | } |
325 | 327 | ||
326 | static inline void rt2x00crypto_tx_remove_iv(struct sk_buff *skb, | 328 | static inline void rt2x00crypto_tx_remove_iv(struct sk_buff *skb, |
327 | unsigned int iv_len) | 329 | struct txentry_desc *txdesc) |
328 | { | 330 | { |
329 | } | 331 | } |
330 | 332 | ||