Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Tags: tohojo/sqm-scripts

Tags

v1.7.2

Toggle v1.7.2's commit message
Default use_mq to off

In some hardware configurations, unconditionally using cake_mq is
problematic. In particular, some SoCs have 16 TX queues but only two
CPUs, and 16 cake instances can end up taking up quite a bit of memory.

To be cautious, default use_mq to off for now. Users can still opt in if
they want to try out cake_mq on their hardware.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>

v1.7.1

Toggle v1.7.1's commit message
sqm: gate USE_MQ after loading the selected qdisc script

start-sqm sources defaults.sh before the selected *.qos script, so SUPPORT_MQ is not yet set at that point. This can force USE_MQ=0 even for scripts that declare SUPPORT_MQ=1 (e.g. piece_of_cake.qos).

Move the SUPPORT_MQ gate to start-sqm after loading the selected script, and keep per-interface cake_mq selection in select_cake().

Signed-off-by: Andrea Pesaresi <andreapesaresi82@gmail.com>

v1.7.0

Toggle v1.7.0's commit message
Support cake_mq in the CAKE-based QoS scripts

Support automatically selecting cake_mq in the layer_cake and
piece_of_cake QoS scripts. On egress, cake_mq will be used if the device
has multiple queues. On ingress, set MQ_IFB to ensure that the IFB
devices are created as multi-queue, which will also allow us to use
cake_mq there.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>

v1.6.1

Toggle v1.6.1's commit message
Update simplest_tbf.qos.help

Signed-off-by: diogosena <diogosena@gmail.com>

v1.6.0

Toggle v1.6.0's commit message
runners: Expose a 'cleanup' action for silent cleanup of an interface

If a network interface is removed before SQM is stopped on that interface,
removing the qdisc from that interface will result in errors in the log.
Whereas not running the 'stop' action will result in leftover state
files (and possibly an IFB interface).

While the right thing to do would be to stop SQM before removing the
interface, this is not always possible; for instance, pppd doesn't have a
'pre-down' hook. So to accommodate this use case, add a new 'cleanup'
action, which just unwinds the firewall rules, removes the IFB
interface (but silently in case it does not exist), and deletes the state
file.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>

v1.5.2

Toggle v1.5.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #147 from tohojo/iptables-compat

Iptables compat fixes

v1.5.1

Toggle v1.5.1's commit message
defaults.sh: Don't override INSMOD variable if it is already set

@SpareSimian noticed that sqm-scripts would always use 'insmod' to load
modules on CentOS even though modprobe was also available. @gordonmessmer
noticed that this was due to the way the shell chains '&&' and '||'
operators, which would evaluate the second assignment if the first
zero-length check fails. And since defaults.sh is included from both
'start-sqm' and the .qos scripts, this double-evaluation always happens on
non-OpenWrt installations.

Fix this by properly grouping the assignment operators so they are
evaluated together if the variable is unset.

Fixes #133.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>

v1.5.0

Toggle v1.5.0's commit message

Verified

This tag was signed with the committer’s verified signature.
tohojo Toke Høiland-Jørgensen
Sqm-Scripts 1.5.0

v1.4.0

Toggle v1.4.0's commit message

Verified

This tag was signed with the committer’s verified signature.
tohojo Toke Høiland-Jørgensen
Sqm-Scripts 1.4.0

v1.3.0

Toggle v1.3.0's commit message
Explain why we are reseting the SILENT variable

Also make ERRLOG a local var, and collaps the two identical tests into a
single if block.

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Morty Proxy This is a proxified and sanitized view of the page, visit original site.