]> git.proxmox.com Git - mirror_iproute2.git/commit
tc: fq: support ce_threshold attribute
authorEric Dumazet <edumazet@google.com>
Sat, 24 Nov 2018 06:37:24 +0000 (22:37 -0800)
committerDavid Ahern <dsahern@gmail.com>
Sat, 24 Nov 2018 15:30:24 +0000 (07:30 -0800)
commit55e106c48053307fd86b8a39c71b09282f54551d
treeba7de5308195f51772c4aa3dec3ade6838a7913a
parentce5071eda617c60f075935d2acd0d9c4ace311c2
tc: fq: support ce_threshold attribute

Kernel commit 48872c11b772 ("net_sched: sch_fq: add dctcp-like marking")
added support for TCA_FQ_CE_THRESHOLD attribute.

This patch adds iproute2 support for it.

It also makes sure fq_print_xstats() can deal with smaller tc_fq_qd_stats
structures given by older kernels.

Usage :

FQATTRS="ce_threshold 4ms"
TXQS=8

for ETH in eth0
do
 tc qd del dev $ETH root 2>/dev/null
 tc qd add dev $ETH root handle 1: mq
 for i in `seq 1 $TXQS`
 do
  tc qd add dev $ETH parent 1:$i fq $FQATTRS
 done
done

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
tc/q_fq.c