summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2004-06-17 23:54:52 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-17 23:54:52 -0700
commite6df0656a5d0038d970965a4c53b6cca3425a528 (patch)
tree2221e4ba0330aca91192556b014593ebc655b700 /include
parente200c64b82da78228bce6060c36c845a1c2ae1eb (diff)
[PKT_SCHED]: Add loss option to network delay scheduler.
This enhances the network simulation scheduler to do simple random loss. The loss parameter is a simple 32 bit value such that 0 means no loss, and 0xffffffff is always drop. I have a new version of the tc command which takes care of conversion from percent to this value. Same patch for 2.4 and 2.6 Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: David S. Miller <davem@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pkt_sched.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/pkt_sched.h b/include/linux/pkt_sched.h
index a3d6b59af515..ef350df8e560 100644
--- a/include/linux/pkt_sched.h
+++ b/include/linux/pkt_sched.h
@@ -437,5 +437,6 @@ struct tc_dly_qopt
{
__u32 latency;
__u32 limit;
-};
+ __u32 loss;
+};
#endif