[Cake] Fwd: Does the latest cake support "tc filter"?

Georgios Amanakis gamanakis at gmail.com
Wed May 30 16:44:11 EDT 2018


I don't have an explicit use case right now, but it gives somewhat
greater flexibility in classifying packets.

Particularly in the ingress mode with ifb (this would mostly apply to
an end-device, not so much to traffic being forwarded through a
router). We cannot set DSCP flags on incoming packets, since they just
arrived. However, we can use a filter on cake to assign them
explicitly to a tin.

We can do the following:
#tc qdisc add dev enp1s0 ingress handle ffff
#tc qdisc add dev ifb0 root handle 8002 cake bandwidth 11800kbit
diffserv3 ingress

#tc filter add dev ifb0 parent 8002: protocol ip \
        u32 match ip src 1.2.3.4/32 \
        action skbedit priority 8002:3

#tc filter add dev enp1s0 parent ffff: protocol all \
        u32 match u32 0 0 \
        action mirred egress redirect dev ifb0

George


More information about the Cake mailing list