]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: sch_fq: add dctcp-like marking
authorEric Dumazet <edumazet@google.com>
Sun, 11 Nov 2018 17:11:31 +0000 (09:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Nov 2018 21:59:21 +0000 (13:59 -0800)
commit0d3c185c47ddab5ebccd480f410b6b3555382285
treecebc970abf4ab61ae117ef21b18a3b967eb9a481
parentfdf7e874c56e392e6765355e7c803677014d5848
net_sched: sch_fq: add dctcp-like marking

Similar to fc77fd02a9b3 ("codel: add ce_threshold attribute")

After EDT adoption, it became easier to implement DCTCP-like CE marking.

In many cases, queues are not building in the network fabric but on
the hosts themselves.

If packets leaving fq missed their Earliest Departure Time by XXX usec,
we mark them with ECN CE. This gives a feedback (after one RTT) to
the sender to slow down and find better operating mode.

Example :

tc qd replace dev eth0 root fq ce_threshold 2.5ms

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/pkt_sched.h
net/sched/sch_fq.c