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
537537 TCA_NETEM_ECN,
538538 TCA_NETEM_RATE64,
539539 TCA_NETEM_PAD,
540+ TCA_NETEM_LATENCY64,
541+ TCA_NETEM_JITTER64,
540542 __TCA_NETEM_MAX,
541543 };
542544