On Apr 6, 2017, at 2:14 PM, Toke Høiland-Jørgensen <toke@toke.dk> wrote:Pete Heist <peteheist@gmail.com> writes:but I’m still a little confused. Is fq_codel actually a classful
qdisc?
Yup. The hash buckets are the classes, basically. You can get per-flow
stats by doing `tc -s class show dev eth0` (only works when a flow has
built a queue).
I get the part about matching with tc-filter and the u32 selector (as
intuitive as that is :), but am not sure of the action the filter
needs to take. However, I do see the example towards the bottom of the
tc-u32 man page where a hash table is created and filters move packets
into the right buckets. Perhaps it will be eventually decipherable
from this… :)
The filter classifies a packet into a class. The 'minor number' of this
is the queue number (so needs to be less than the number of flows you
configured for fq_codel - 1024 by default).