Changeset 20038


Ignore:
Timestamp:
2010-03-07T18:00:43+01:00 (7 years ago)
Author:
nbd
Message:

mac80211: improve minstrel_ht performance by reducing the impact of slow sampling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mac80211/patches/560-minstrel_ht.patch

    r20035 r20038  
    6969--- /dev/null 
    7070+++ b/net/mac80211/rc80211_minstrel_ht.c 
    71 @@ -0,0 +1,800 @@ 
     71@@ -0,0 +1,807 @@ 
    7272+/* 
    7373+ * Copyright (C) 2010 Felix Fietkau <nbd@openwrt.org> 
     
    263263+       int group, i, index; 
    264264+ 
     265+       mi->sample_slow = 0; 
    265266+       mi->sample_count = 0; 
    266267+       mi->max_tp_rate = 0; 
     
    543544+               minstrel_calc_retransmit(mp, mi, index); 
    544545+ 
    545 +       if (rtscts) 
     546+       if (mr->probability < MINSTREL_FRAC(20, 100)) 
     547+               rate->count = 2; 
     548+       else if (rtscts) 
    546549+               rate->count = mr->retry_count_rtscts; 
    547550+       else 
     
    596599+        */ 
    597600+       if (minstrel_get_duration(sample_idx) > 
    598 +           minstrel_get_duration(mi->max_tp_rate) && 
    599 +           mr->sample_skipped < 10) 
    600 +               goto next; 
     601+           minstrel_get_duration(mi->max_tp_rate)) { 
     602+           if (mr->sample_skipped < 10) 
     603+                       goto next; 
     604+ 
     605+               if (mi->sample_slow++ > 2) 
     606+                       goto next; 
     607+       } 
    601608+ 
    602609+       return sample_idx; 
     
    872879--- /dev/null 
    873880+++ b/net/mac80211/rc80211_minstrel_ht.h 
    874 @@ -0,0 +1,120 @@ 
     881@@ -0,0 +1,121 @@ 
    875882+/* 
    876883+ * Copyright (C) 2010 Felix Fietkau <nbd@openwrt.org> 
     
    968975+       u8 sample_tries; 
    969976+       u8 sample_count; 
     977+       u8 sample_slow; 
    970978+ 
    971979+       /* current MCS group to be sampled */ 
Note: See TracChangeset for help on using the changeset viewer.