netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6] (1/4) netem - update API for new features
@ 2004-08-25 17:53 Stephen Hemminger
  2004-08-25 17:57 ` [PATCH 2.6] (2/4) netem - comment update Stephen Hemminger
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Stephen Hemminger @ 2004-08-25 17:53 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

Extend netem options to support new features.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>

diff -Nru a/include/linux/pkt_sched.h b/include/linux/pkt_sched.h
--- a/include/linux/pkt_sched.h	2004-08-24 14:43:33 -07:00
+++ b/include/linux/pkt_sched.h	2004-08-24 14:43:33 -07:00
@@ -401,7 +401,8 @@
 
 #define TCA_ATM_MAX	TCA_ATM_STATE
 
-/* Network emulator */
+/* Network section */
+
 struct tc_netem_qopt
 {
 	__u32	latency;	/* added delay (us) */
@@ -409,6 +410,13 @@
 	__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	jitter;		/* random jitter in latency (us) */
+	__u32	jitter;		/* delay sigma (us) */
+
+	__u32	delay_corr;	/* delay correllation (0=none ~0=100%) */
+	__u32	loss_corr;	/* packet loss correllation (0=none ~0=100%) */
+	__u32	dup_corr;	/* duplicate correlation (0=none ~0=100%) */
+
+	__s16	delay_dist[0];	/* delay distribution table (optional) */
+#define TCA_NETEM_TABLEFACTOR	8192
 };
 #endif

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-08-26 18:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-25 17:53 [PATCH 2.6] (1/4) netem - update API for new features Stephen Hemminger
2004-08-25 17:57 ` [PATCH 2.6] (2/4) netem - comment update Stephen Hemminger
2004-08-25 17:59 ` [PATCH 2.6] (3/4) netem - support packet duplication Stephen Hemminger
2004-08-25 18:01 ` [PATCH 2.6] (4/4) netem - change parameters shouldn't destroy child qdisc Stephen Hemminger
2004-08-25 23:15   ` [PATCH 2.6] netem - add correlated random number support Stephen Hemminger
2004-08-25 23:52     ` David S. Miller
2004-08-25 18:08 ` [PATCH 2.6] netem - configurable distributions Stephen Hemminger
2004-08-25 20:50 ` [PATCH 2.4] netem -- update to match new 2.6 version Stephen Hemminger
2004-08-25 23:25 ` [PATCH 2.6] (1/4) netem - update API for new features David S. Miller
2004-08-26 12:08 ` jamal
2004-08-26 16:16   ` Stephen Hemminger
2004-08-26 18:13     ` jamal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).