Skip to content

Commit 8c2cd9b

Browse files
v2023030a, a good number of improvements:
* move tc commands to functions as they're the same for ingress and egress. * now allows starting from hotplug *if there is no qdisc already active on nssifb* * reverted shaper burst value to standard SQM - seems to perform better * calculated queue limits if no queue limit is specified by the user * allow setting flows via the advanced options string * MTU is now obtained from the interface and OVERHEAD is added to it. Defaults to 1518 as this appears to be the packet size for the qdisc. This value is now used throughout for all calculations * more error handling
1 parent 37690d4 commit 8c2cd9b

File tree

3 files changed

+200
-90
lines changed

3 files changed

+200
-90
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ If it's working the output from tc should look something like this:
6767
maxpacket 1518 drop_overlimit 0 new_flow_count 5081 ecn_mark 0
6868
new_flows_len 0 old_flows_len 1
6969

70-
71-
7270
## Known bugs, limitations
7371

7472

@@ -77,8 +75,8 @@ If it's working the output from tc should look something like this:
7775
* No marking or traffic classification is currently possible, this also means that DSCP squashing does not work
7876
* ECN marking is not supported
7977
* The script does not does anything with the Link Layer Adaptation fields.
80-
* On kernel 5.10 the script does not remove the nssifb interface if it's stopped, because removing or even bringing down the interface frequently crashed my router. This could cause problems if you're switching to a script which set up regular ifb4ethX interfaces. You probably need to reboot if you want to switch to another SQM script. On kernel 5.15 this problem has been resolved.
81-
* In some cases, the router crashes on ip link up of nssifb, *especially* when called from hotplug. Because of this, there's workaround in the script that prevents the script from executing when it's called from hotplug.
78+
* On kernel 5.10 the script does not remove the nssifb interface if it's stopped, because removing or even bringing down the interface frequently crashed my router. This could cause problems if you're switching to a script which set up regular ifb4ethX interfaces. You probably need to reboot if you want to switch to another SQM script.
79+
# On kernel 5.15 the above problem has been resolved, but in some cases (I think under high load), the router crashes on ip link up of nssifb, *especially* when called from hotplug. Because of this, there's workaround in the script that prevents the script from executing when it's called from hotplug.
8280

8381

8482

0 commit comments

Comments
 (0)