[PATCH 0/5] ath10k: improve RX performance

Kalle Valo kvalo at qca.qualcomm.com
Thu Sep 26 03:21:02 EDT 2013


Michal Kazior <michal.kazior at 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:

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:

And for patch 3:

diff --cc drivers/net/wireless/ath/ath10k/htt_rx.c
index c5f1800,c94ced8..0000000
--- a/drivers/net/wireless/ath/ath10k/htt_rx.c
+++ b/drivers/net/wireless/ath/ath10k/htt_rx.c
@@@ -672,14 -671,18 +673,18 @@@ static void ath10k_htt_rx_amsdu(struct 
  			skb_trim(skb, skb->len - FCS_LEN);
  			break;
  		case RX_MSDU_DECAP_NATIVE_WIFI:
+ 			/* nothing to do */
  			break;
  		case RX_MSDU_DECAP_ETHERNET2_DIX:
+ 			/* strip ethernet header and insert decapped 802.11
+ 			 * header, amsdu subframe header and rfc1042 header */
+ 
 -			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:



More information about the ath10k mailing list