Message ID | 87a9j0t5ep.fsf@kamboji.qca.qualcomm.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
On 26 September 2013 09:21, Kalle Valo <kvalo@qca.qualcomm.com> wrote: > Michal Kazior <michal.kazior@tieto.com> writes: > >> This patchset gives clear RX performance >> improvement on AP135. Throughput is at least >> doubled (300mbps -> 600mbps, UDP RX, 2x2). >> >> This contains a workaround for >> retransmission/duplication recovery. >> >> There's a pending patch for mac80211 that will >> allow proper individiual A-MSDU subframe >> reporting. >> >> Changes since RFC: >> * comments fixes (Kalle) >> * one patch extracted/split (Kalle) >> * commit message adjustments >> >> >> Michal Kazior (5): >> ath10k: report A-MSDU subframes individually >> ath10k: document decap modes >> ath10k: cleanup RX decap handling >> ath10k: fix Native Wifi decap mode RX >> ath10k: align RX frames properly > > All five applies, thanks. > > There were few long lines, I fixed those myself. Can you please double > check that I didn't break anything? > > Kalle > > For patch 1 I did: > > (...) Looks good. Thanks! Micha?. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c index e30b95c..c5f1800 100644 --- a/drivers/net/wireless/ath/ath10k/htt_rx.c +++ b/drivers/net/wireless/ath/ath10k/htt_rx.c @@ -650,7 +650,7 @@ static void ath10k_htt_rx_amsdu(struct ath10k_htt *htt, first = skb; while (skb) { void *decap_hdr; - int decap_len; + int len; rxd = (void *)skb->data - sizeof(*rxd); fmt = MS(__le32_to_cpu(rxd->msdu_start.info1), @@ -661,8 +661,10 @@ static void ath10k_htt_rx_amsdu(struct ath10k_htt *htt, /* First frame in an A-MSDU chain has more decapped data. */ if (skb == first) { - decap_hdr += round_up(ieee80211_hdrlen(hdr->frame_control), 4); - decap_hdr += round_up(ath10k_htt_rx_crypto_param_len(enctype), 4); + len = round_up(ieee80211_hdrlen(hdr->frame_control), 4); + len += round_up(ath10k_htt_rx_crypto_param_len(enctype), + 4); + decap_hdr += len; } switch (fmt) { @@ -672,12 +674,12 @@ static void ath10k_htt_rx_amsdu(struct ath10k_htt *htt, case RX_MSDU_DECAP_NATIVE_WIFI: break; case RX_MSDU_DECAP_ETHERNET2_DIX: - decap_len = 0; - decap_len += sizeof(struct rfc1042_hdr); - decap_len += sizeof(struct amsdu_subframe_hdr); + len = 0; + len += sizeof(struct rfc1042_hdr); + len += sizeof(struct amsdu_subframe_hdr); skb_pull(skb, sizeof(struct ethhdr)); - memcpy(skb_push(skb, decap_len), decap_hdr, decap_len); + memcpy(skb_push(skb, len), decap_hdr, len); memcpy(skb_push(skb, hdr_len), hdr, hdr_len); break; case RX_MSDU_DECAP_8023_SNAP_LLC: