summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2004-07-09 02:46:16 -0700
committerDavid S. Miller <davem@nuts.davemloft.net>2004-07-09 02:46:16 -0700
commit0760b8e46faded58884597616492d3a19f4fdfaa (patch)
treec8d41f85d57249c7f588b4d3dcf6e3f531a73ef4 /include/linux
parentca4d12640f31b0757fb35bde529c52dff9737d8d (diff)
[PKT_SCHED]: Add jitter support to netem.
This patch adds jitter if desired to the delayed packets in the netem scheduler. I dropped the rate stuff out and reorganized so that an underlying pfifo queue is used (next plan is to make it have class ops). The jitter is given as sigma to a Gaussian normal distribution. The actual implementation is a reduced form of the table driven stuff in NISTnet (free). Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: David S. Miller <davem@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pkt_sched.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pkt_sched.h b/include/linux/pkt_sched.h
index 76f9cbc0f24a..d98d8cfcd08d 100644
--- a/include/linux/pkt_sched.h
+++ b/include/linux/pkt_sched.h
@@ -409,6 +409,6 @@ struct tc_netem_qopt
__u32 loss; /* random packet loss (0=none ~0=100%) */
__u32 gap; /* re-ordering gap (0 for delay all) */
__u32 duplicate; /* random packet dup (0=none ~0=100%) */
- __u32 rate; /* maximum transmit rate (bytes/sec) */
+ __u32 jitter; /* random jitter in latency (us) */
};
#endif