Teach SQM hotplug tricks
authorSebastian Moeller <moeller0@gmx.de>
Tue, 3 Mar 2015 12:23:53 +0000 (13:23 +0100)
committerToke Høiland-Jørgensen <toke@toke.dk>
Tue, 3 Mar 2015 16:49:50 +0000 (17:49 +0100)
commit5b61cfba076c61cf09783a7f6ef4150e55b74a3f
tree483f5982c261f56c32b8bf5ddfb11071200e2f28
parentebdd36c78350b104f8b745780fb59c885e0d8bc5
Teach SQM hotplug tricks

Some interfaces like wan-pppoe go away, when the ppp connection is lost
and get recreated once the link is established again. SQM now
has its own hotplug script to re-enable itself on the interfae just hotplugged.
SQM will not touch other instances of itself running on other interfaces
if called by hotplug.d. The implementation now allows this functionality by
calling run.sh like:
/usr/lib/sqm/run.sh interface YOUR_INTERFACE_NAME_HERE
e.g.: /usr/lib/sqm/run.sh interface ge00-pppoe
If called with a specific interface SQM will only try to disable itself
on that interface to clean up all left over state and the re-enable
itself on just that interface. Hopefully that allows for better service
with instable interfaces like pppoe. The current code passes a simple manual
stop start test of the ge00-pppoe interface from the GUI and does seem
to do the right thing, at least on cerowrt 3.10.50-1...
net/sqm-scripts/Makefile
net/sqm-scripts/files/etc/hotplug.d/iface/11-sqm [new file with mode: 0755]
net/sqm-scripts/files/usr/lib/sqm/run.sh
net/sqm-scripts/files/usr/lib/sqm/simple.qos