Searched refs:w_q (Results 1 - 6 of 6) sorted by relevance

/freebsd-10-stable/sys/netinet/
H A Dip_dummynet.h166 int w_q ; /* queue weight (scaled) */ member in struct:dn_fs
/freebsd-10-stable/sys/netpfil/ipfw/
H A Dip_dn_glue.c114 int w_q ; /* queue weight (scaled) */ member in struct:dn_flow_set
122 u_int * w_q_lookup ; /* lookup table for computing (1-w_q)^t */
125 int lookup_weight ; /* equal to (1-w_q)^t / (1-w_q)^(t+1) */
428 fs->w_q = f->w_q;
650 fs->w_q = f->fs.w_q;
704 fs->w_q = f->fs.w_q;
[all...]
H A Dip_dn_private.h226 int w_q ; /* queue weight (scaled) */ member in struct:dn_fsk
235 u_int * w_q_lookup ; /* lookup table for computing (1-w_q)^t */
238 int lookup_weight ; /* equal to (1-w_q)^t / (1-w_q)^(t+1) */
H A Dip_dummynet.c1188 fs->w_q = fs->fs.w_q;
1196 idle = div64((s * 3) , fs->w_q); /* s, fs->w_q scaled; idle not scaled */
1201 w0 = weight = SCALE(1) - fs->w_q; //fs->w_q scaled
1244 /* Fill the lookup table with (1 - w_q)^x */
1245 fs->w_q_lookup[0] = SCALE(1) - fs->w_q;
H A Dip_dn_io.c295 * with an exponential weighted (w_q) moving average:
296 * avg <- (1-w_q) * avg + w_q * q_size
300 * avg = (1 - w_q)^(idle/s)
317 /* Queue is not empty, avg <- avg + (q_size - avg) * w_q */
319 int64_t v = SCALE_MUL((int64_t)diff, (int64_t)fs->w_q);
326 * (1 - * w_q)^(idle_time/s) where s is the time to send a
/freebsd-10-stable/sbin/ipfw/
H A Ddummynet.c497 "\n\t %cRED w_q %f min_th %d max_th %d max_p %f",
499 1.0 * fs->w_q / (double)(1 << SCALE_RED),
1584 NEED1("red/gred needs w_q/min_th/max_th/max_p\n");
1589 * the format for parameters is w_q/min_th/max_th/max_p
1592 double w_q = strtod(end, NULL); local
1593 if (w_q > 1 || w_q <= 0)
1594 errx(EX_DATAERR, "0 < w_q <= 1");
1595 fs->w_q = (int) (w_q * (
[all...]

Completed in 132 milliseconds