Lines Matching +full:int +full:- +full:threshold
1 /*-
2 * Copyright (C) 1997-2003
38 #define REDF_FLOWVALVE 0x04 /* use flowvalve (aka penalty-box) */
45 int th_min; /* red min threshold */
46 int th_max; /* red max threshold */
47 int inv_pmax; /* inverse of max drop probability */
51 int q_avg;
64 int w_weight;
65 int w_param_max;
66 int w_refcount;
71 int red_pkttime; /* average packet time in micro sec
73 int red_flags; /* red flags */
76 int red_weight; /* weight for EWMA */
77 int red_inv_pmax; /* inverse of max drop probability */
78 int red_thmin; /* red min threshold */
79 int red_thmax; /* red max threshold */
82 int red_wshift; /* log(red_weight) */
83 int red_thmin_s; /* th_min scaled by avgshift */
84 int red_thmax_s; /* th_max scaled by avgshift */
85 int red_probd; /* drop probability denominator */
87 int red_avg; /* queue len avg scaled by avgshift */
88 int red_count; /* packet count since last dropped/
90 int red_idle; /* queue was empty */
91 int red_old; /* avg is above th_min */
109 extern red_t *red_alloc(int, int, int, int, int, int);
112 extern int red_addq(red_t *, class_queue_t *, struct mbuf *,
115 extern int drop_early(int, int, int);
116 extern int mark_ecn(struct mbuf *, struct altq_pktattr *, int);
117 extern struct wtab *wtab_alloc(int);
118 extern int wtab_destroy(struct wtab *);
119 extern int32_t pow_w(struct wtab *, int);