aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-08-07 11:28:44 +0100
committerdiogo464 <[email protected]>2025-08-07 11:28:44 +0100
commitd9f0415c1dceb418eac81ff16d6eaa78fe1f4743 (patch)
tree72e2708bf217876af80fb928647027ba42bbaa88 /src/main.rs
parenta9d54bdf727dcfa4b4c2d341f3f77cde448fa80e (diff)
fixed dmesg logs from tc
there were messages similar to: HTB: quantum of class 10020 is small. Consider r2q change. that showed up when brining up the network. this commit fixes that.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 31f860b..839ddf8 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1010,7 +1010,7 @@ fn machine_generate_configs(
1010 1010
1011 for iface in &["lo", machine.interface()] { 1011 for iface in &["lo", machine.interface()] {
1012 machine_tc_commands.push(format!( 1012 machine_tc_commands.push(format!(
1013 "qdisc add dev {iface} root handle 1: htb default 9999" 1013 "qdisc add dev {iface} root handle 1: htb default 9999 r2q 100000"
1014 )); 1014 ));
1015 machine_tc_commands.push(format!( 1015 machine_tc_commands.push(format!(
1016 "class add dev {iface} parent 1: classid 1:9999 htb rate 10gbit" 1016 "class add dev {iface} parent 1: classid 1:9999 htb rate 10gbit"