-
-
Save nxhack/b9484353f7eb3db3f510776b5a8f4914 to your computer and use it in GitHub Desktop.
Modifies codel target and interval per https://patchwork.kernel.org/project/linux-wireless/patch/CAA93jw6NJ2cmLmMauz0xAgC2MGbBq6n0ZiZzAdkK0u4b+O2yXg@mail.gmail.com/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: backports-6.1-rc8/net/mac80211/sta_info.c | |
=================================================================== | |
--- backports-6.1-rc8.orig/net/mac80211/sta_info.c | |
+++ backports-6.1-rc8/net/mac80211/sta_info.c | |
@@ -673,12 +673,13 @@ __sta_info_alloc(struct ieee80211_sub_if | |
} | |
sta->cparams.ce_threshold = CODEL_DISABLED_THRESHOLD; | |
- sta->cparams.target = MS2TIME(20); | |
- sta->cparams.interval = MS2TIME(100); | |
+ sta->cparams.target = MS2TIME(8); | |
+ sta->cparams.interval = MS2TIME(80); | |
sta->cparams.ecn = true; | |
sta->cparams.ce_threshold_selector = 0; | |
sta->cparams.ce_threshold_mask = 0; | |
+ pr_debug("Codel target, interval %d, %d\n", sta->cparams.target, sta->cparams.interval); | |
sta_dbg(sdata, "Allocated STA %pM\n", sta->sta.addr); | |
return sta; | |
@@ -2770,15 +2771,9 @@ unsigned long ieee80211_sta_last_active( | |
static void sta_update_codel_params(struct sta_info *sta, u32 thr) | |
{ | |
- if (thr && thr < STA_SLOW_THRESHOLD * sta->local->num_sta) { | |
- sta->cparams.target = MS2TIME(50); | |
- sta->cparams.interval = MS2TIME(300); | |
- sta->cparams.ecn = false; | |
- } else { | |
- sta->cparams.target = MS2TIME(20); | |
- sta->cparams.interval = MS2TIME(100); | |
- sta->cparams.ecn = true; | |
- } | |
+ sta->cparams.target = MS2TIME(8); | |
+ sta->cparams.interval = MS2TIME(80); | |
+ sta->cparams.ecn = true; | |
} | |
void ieee80211_sta_set_expected_throughput(struct ieee80211_sta *pubsta, | |
Index: backports-6.1-rc8/net/mac80211/tx.c | |
=================================================================== | |
--- backports-6.1-rc8.orig/net/mac80211/tx.c | |
+++ backports-6.1-rc8/net/mac80211/tx.c | |
@@ -1624,7 +1624,7 @@ int ieee80211_txq_setup_flows(struct iee | |
codel_params_init(&local->cparams); | |
- local->cparams.interval = MS2TIME(100); | |
- local->cparams.target = MS2TIME(20); | |
+ local->cparams.interval = MS2TIME(80); | |
+ local->cparams.target = MS2TIME(8); | |
local->cparams.ecn = true; | |
local->cvars = kcalloc(fq->flows_cnt, sizeof(local->cvars[0]), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment