Skip to content

Commit

Permalink
mac80211: minstrel_ht: add a small optimization to minstrel_aggr_check
Browse files Browse the repository at this point in the history
Check the queue mapping earlier, skb->queue_mapping is more likely than
skb->data to still be in d-cache.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Felix Fietkau authored and Johannes Berg committed Nov 19, 2014
1 parent f815e2b commit 75769c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/mac80211/rc80211_minstrel_ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,9 @@ minstrel_aggr_check(struct ieee80211_sta *pubsta, struct sk_buff *skb)
struct sta_info *sta = container_of(pubsta, struct sta_info, sta);
u16 tid;

if (skb_get_queue_mapping(skb) == IEEE80211_AC_VO)
return;

if (unlikely(!ieee80211_is_data_qos(hdr->frame_control)))
return;

Expand All @@ -700,9 +703,6 @@ minstrel_aggr_check(struct ieee80211_sta *pubsta, struct sk_buff *skb)
if (likely(sta->ampdu_mlme.tid_tx[tid]))
return;

if (skb_get_queue_mapping(skb) == IEEE80211_AC_VO)
return;

ieee80211_start_tx_ba_session(pubsta, tid, 5000);
}

Expand Down

0 comments on commit 75769c8

Please sign in to comment.