History

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.

Dave Taht committed 9 years ago

Commit 99803171 parent 112f9cb2 files · +16 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/pkt_sched.h+2−0
@@ -537,6 +537,8 @@ enum { · 536 unmodified lines
537 TCA_NETEM_ECN,537 TCA_NETEM_ECN,
538 TCA_NETEM_RATE64,538 TCA_NETEM_RATE64,
539 TCA_NETEM_PAD,539 TCA_NETEM_PAD,
540 TCA_NETEM_LATENCY64,
541 TCA_NETEM_JITTER64,
540 __TCA_NETEM_MAX,542 __TCA_NETEM_MAX,
541};543};
542 544