Strangely I can't seem to make a rule that sets the tc class work,
unless it's setting the class of the root qdisc?
Here are some rules I have:
ip dscp { ef, cs6 } meta priority set 10:1 counter packets 19
bytes 850
ip dscp { cs5 } meta priority set 10:2 counter packets 327
bytes 98340
ip dscp { af41, af42, af43 } meta priority set 1:30 counter
packets 24 bytes 1584
ip dscp { cs2 } meta priority set 1:50 counter packets 0 bytes 0
ip dscp { cs1 } meta priority set 1:60 counter packets 0 bytes 0
ip6 dscp { ef, cs6 } meta priority set 10:1 counter packets 2
bytes 98
ip6 dscp { cs5 } meta priority set 10:2 counter packets 91
bytes 8328
ip6 dscp { af41, af42, af43 } meta priority set 1:30 counter
packets 0 bytes 0
ip6 dscp { cs2 } meta priority set 1:50 counter packets 53270
bytes 16712716
ip6 dscp { cs1 } meta priority set 1:60 counter packets 0 bytes 0
As you can see the first two have hit a combined 346 packets... but yet..
tc -s qdisc show dev eno1
...
qdisc drr 10: parent 1:10
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
No packets have gone through qdisc 10:
whereas other rules that classify to 1:30 1:50 and 1:60 are hitting and
shoving their packets into the fq_codel below those classes:
tc -s class show dev eno1
class hfsc 1: root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
period 0 level 2
class hfsc 1:10 parent 1:1 leaf 10: rt m1 882Mbit d 20.0ms m2 20Mbit
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
period 0 level 0
class hfsc 1:1 parent 1: ls m1 0bit d 0us m2 980Mbit ul m1 0bit d 0us m2
980Mbit
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
period 69795 work 12748919 bytes level 1
class hfsc 1:30 parent 1:1 leaf 30: ls m1 588Mbit d 60.0ms m2 196Mbit
Sent 436 bytes 4 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
period 4 work 436 bytes level 0
class hfsc 1:40 parent 1:1 leaf 40: ls m1 196Mbit d 60.0ms m2 490Mbit
Sent 8189138 bytes 54857 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
period 54850 work 8189138 bytes level 0
class hfsc 1:50 parent 1:1 leaf 50: ls m1 147Mbit d 60.0ms m2 196Mbit
Sent 4559345 bytes 14975 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
period 14941 work 4559345 bytes level 0
class hfsc 1:60 parent 1:1 leaf 60: ls m1 49Mbit d 60.0ms m2 98Mbit ul
m1 0bit d 0us m2 931Mbit
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
period 0 level 0
What is going wrong?