From: Luis R. Rodriguez Date: Wed, 4 Nov 2009 16:20:42 +0000 (-0800) Subject: ath9k: avoid the copy skb->cb on every RX'd skb X-Git-Tag: v2.6.33-rc1~388^2~280^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ca42627f3ddc0e4fc3e62d879cc35ab5beaaa8b;p=pandora-kernel.git ath9k: avoid the copy skb->cb on every RX'd skb The skb->cb (control buffer, 48 bytes) is available to the skb upon skb allocation. You can fill it up imediately after skb allocation. ath9k was copying onto the skb->cb the data from the processed skb for mac80211 from a stack struct ieee80211_rx_status structure. This is unnecessary, instead use the skb->cb for the rx status immediately after the skb becomes available and DMA synched. Additionally, avoid the copy of the skb->cb also for virtual wiphys as skb_copy() will copy over the skb->cb for us as well. Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville --- Reading git-diff-tree failed