tc: dont be limited to HTB
Costa Tsaousis (ktsaou) committed
Feb 28, 2016 at 04:47 UTC
26306edba09556fd2e35a2c0a7aa7f0fc75f5df3
2 files changed
+4
-5
plugins.d/tc-qos-helper.sh
+2
-3
@@ -41,7 +41,6 @@ show_tc() {
41
local x="$1"
42
43
echo "BEGIN $x"
44
-
44
$tc_cmd -s class show dev $x
45
46
# check FireQOS names for classes
@@ -51,12 +50,12 @@ show_tc() {
50
echo "SETDEVICENAME $name"
51
52
interface_classes=
53
+ interface_classes_monitor=
54
. /var/run/fireqos/$name.conf
55
for n in $interface_classes_monitor
56
do
57
- setclassname $(echo $n | tr '|' ' ')
57
+ setclassname $(echo $n | tr '|' ' ')
58
done
59
-
59
echo "SETDEVICEGROUP $interface_dev"
60
fi
61
echo "END $x"
src/plugin_tc.c
+2
-2
@@ -558,10 +558,10 @@ void *tc_main(void *ptr)
558
class = NULL;
559
560
if(words[1] && words[2] && words[3] && words[4] && (strcmp(words[3], "parent") == 0 || strcmp(words[3], "root") == 0)) {
561
- char *type = words[1]; // the class: htb, fq_codel, etc
561
+ //char *type = words[1]; // the class: htb, fq_codel, etc
562
563
// we are only interested for HTB classes
564
- if(strcmp(type, "htb") != 0) continue;
564
+ //if(strcmp(type, "htb") != 0) continue;
565
566
char *id = words[2]; // the class major:minor
567
char *parent = words[3]; // 'parent' or 'root'