diff options
author | Dave Taht <dave.taht@gmail.com> | 2017-11-08 15:12:27 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-13 10:15:47 +0900 |
commit | 99803171ef04037092bf5eb29ae801e8b4d49a75 (patch) | |
tree | 25d08ba17e1910ffc0f2c7dd0ce9fafcc90bbb01 /include | |
parent | 112f9cb65643caf7b922e1a66dc752bfab40aeb1 (diff) | |
download | linux-stable-99803171ef04037092bf5eb29ae801e8b4d49a75.tar.gz linux-stable-99803171ef04037092bf5eb29ae801e8b4d49a75.tar.bz2 linux-stable-99803171ef04037092bf5eb29ae801e8b4d49a75.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/pkt_sched.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/pkt_sched.h b/include/uapi/linux/pkt_sched.h index 6a2c5ea7e9c4..8fe6d1842bee 100644 --- a/include/uapi/linux/pkt_sched.h +++ b/include/uapi/linux/pkt_sched.h @@ -537,6 +537,8 @@ enum { TCA_NETEM_ECN, TCA_NETEM_RATE64, TCA_NETEM_PAD, + TCA_NETEM_LATENCY64, + TCA_NETEM_JITTER64, __TCA_NETEM_MAX, }; |