OSDN Git Service

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)
commit99803171ef04037092bf5eb29ae801e8b4d49a75
tree25d08ba17e1910ffc0f2c7dd0ce9fafcc90bbb01
parent112f9cb65643caf7b922e1a66dc752bfab40aeb1
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