]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: align RX frames properly
authorMichal Kazior <michal.kazior@tieto.com>
Thu, 26 Sep 2013 07:12:24 +0000 (10:12 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 26 Sep 2013 07:12:24 +0000 (10:12 +0300)
commit1953b3aa38f6e26ed40afa6ac348455997fc747a
tree61366fa4b486059daab13c44169b364369ced859
parent3a153f4532631bf7c1892bc0296bfe113cc4cdb0
ath10k: align RX frames properly

Ethernet-like decapping mode leaves IP protocol
frame not aligned to 4-byte boundaries. This leads
to re-aligning in mac80211 which in turn leads to
poor CPU cache behaviour on some machines.

Since HW doesn't allow to change payload offset
properly the solution is to force HW to decap in
Native Wifi mode which always has 24-bytes long
802.11 header (even for QoS frames). This means IP
frame is properly aligned in this decap mode.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/hw.h