sqm-scripts: backport from trunk "Teach SQM hotplug tricks"

Backport from trunk the commit that adds support for hotplug action.
5b61cfba07

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
Hannu Nyman
2015-03-04 21:34:19 +02:00
parent bafecb73ad
commit 17b6911cde
4 changed files with 42 additions and 4 deletions

3
net/sqm-scripts/files/usr/lib/sqm/simple.qos Normal file → Executable file
View File

@@ -37,6 +37,9 @@ ipt -t mangle -A QOS_MARK_${IFACE} -m tos --tos Minimize-Delay -j MARK --set-ma
# Turn it on. Preserve classification if already performed
#sm: is it correct to do this in $IFACE? Should ingress not be on $DEV? since HTB acts on $DEV?
# SQUASH also does not work on $DEV (that is the IFB will still see the incoming ToS bits whether we squash or not)
# SQUASH is still useful to protect internal machines...
if [ "$SQUASH_DSCP" = "1" ]
then
sqm_logger "Squashing differentiated services code points (DSCP) from ingress."