313-mac80211-minstrel_ht-add-a-small-optimization-to-min.patch 929 B

123456789101112131415161718192021222324252627282930313233
  1. From: Felix Fietkau <nbd@openwrt.org>
  2. Date: Sat, 15 Nov 2014 22:13:38 +0100
  3. Subject: [PATCH] mac80211: minstrel_ht: add a small optimization to
  4. minstrel_aggr_check
  5. Check the queue mapping earlier, skb->queue_mapping is more likely than
  6. skb->data to still be in d-cache.
  7. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
  8. ---
  9. --- a/net/mac80211/rc80211_minstrel_ht.c
  10. +++ b/net/mac80211/rc80211_minstrel_ht.c
  11. @@ -690,6 +690,9 @@ minstrel_aggr_check(struct ieee80211_sta
  12. struct sta_info *sta = container_of(pubsta, struct sta_info, sta);
  13. u16 tid;
  14. + if (skb_get_queue_mapping(skb) == IEEE80211_AC_VO)
  15. + return;
  16. +
  17. if (unlikely(!ieee80211_is_data_qos(hdr->frame_control)))
  18. return;
  19. @@ -700,9 +703,6 @@ minstrel_aggr_check(struct ieee80211_sta
  20. if (likely(sta->ampdu_mlme.tid_tx[tid]))
  21. return;
  22. - if (skb_get_queue_mapping(skb) == IEEE80211_AC_VO)
  23. - return;
  24. -
  25. ieee80211_start_tx_ba_session(pubsta, tid, 5000);
  26. }