Commit 46207451 authored by osdl.net!shemminger's avatar osdl.net!shemminger

Copy of 2.6.9-rc2

(Logical change 1.73)
parent d2c4ee1b
...@@ -401,7 +401,16 @@ enum { ...@@ -401,7 +401,16 @@ enum {
#define TCA_ATM_MAX TCA_ATM_STATE #define TCA_ATM_MAX TCA_ATM_STATE
/* Network section */ /* Network emulator */
enum
{
TCA_NETEM_UNSPEC,
TCA_NETEM_CORR,
TCA_NETEM_DELAY_DIST,
};
#define TCA_NETEM_MAX TCA_NETEM_DELAY_DIST
struct tc_netem_qopt struct tc_netem_qopt
{ {
...@@ -410,14 +419,16 @@ struct tc_netem_qopt ...@@ -410,14 +419,16 @@ struct tc_netem_qopt
__u32 loss; /* random packet loss (0=none ~0=100%) */ __u32 loss; /* random packet loss (0=none ~0=100%) */
__u32 gap; /* re-ordering gap (0 for delay all) */ __u32 gap; /* re-ordering gap (0 for delay all) */
__u32 duplicate; /* random packet dup (0=none ~0=100%) */ __u32 duplicate; /* random packet dup (0=none ~0=100%) */
__u32 jitter; /* delay sigma (us) */ __u32 jitter; /* random jitter in latency (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) */ struct tc_netem_corr
#define TCA_NETEM_TABLEFACTOR 8192 {
__u32 delay_corr; /* delay correlation */
__u32 loss_corr; /* packet loss correlation */
__u32 dup_corr; /* duplicate correlation */
}; };
#define NETEM_DIST_SCALE 8192
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment