]> git.baikalelectronics.ru Git - kernel.git/commit
netem: add uapi to express delay and jitter in nanoseconds
authorDave Taht <dave.taht@gmail.com>
Wed, 8 Nov 2017 23:12:27 +0000 (15:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Nov 2017 01:15:47 +0000 (10:15 +0900)
commitdd545f325a5575badcfa2eb6f589a3e2ea60047c
tree25d08ba17e1910ffc0f2c7dd0ce9fafcc90bbb01
parenta28bc4f2973e4d8e04682e19919d363c8915d4fc
netem: add uapi to express delay and jitter in nanoseconds

netem userspace has long relied on a horrible /proc/net/psched hack
to translate the current notion of "ticks" to nanoseconds.

Expressing latency and jitter instead, in well defined nanoseconds,
increases the dynamic range of emulated delays and jitter in netem.

It will also ease a transition where reducing a tick to nsec
equivalence would constrain the max delay in prior versions of
netem to only 4.3 seconds.

Signed-off-by: Dave Taht <dave.taht@gmail.com>
Suggested-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/pkt_sched.h
net/sched/sch_netem.c