Home
last modified time | relevance | path

Searched refs:weight (Results 1 – 25 of 31) sorted by relevance

12

/linux-2.4.37.9/net/ipv4/ipvs/
Dip_vs_wrr.c57 int weight; in ip_vs_wrr_gcd_weight() local
63 weight = atomic_read(&dest->weight); in ip_vs_wrr_gcd_weight()
64 if (weight > 0) { in ip_vs_wrr_gcd_weight()
65 g = weight; in ip_vs_wrr_gcd_weight()
74 weight = atomic_read(&dest->weight); in ip_vs_wrr_gcd_weight()
75 if (weight > 0) in ip_vs_wrr_gcd_weight()
76 g = gcd(weight, g); in ip_vs_wrr_gcd_weight()
90 int weight = 0; in ip_vs_wrr_max_weight() local
95 if (atomic_read(&dest->weight) > weight) in ip_vs_wrr_max_weight()
96 weight = atomic_read(&dest->weight); in ip_vs_wrr_max_weight()
[all …]
Dip_vs_sed.c106 if (atomic_read(&least->weight) > 0) { in ip_vs_sed_schedule()
120 if (loh * atomic_read(&dest->weight) > in ip_vs_sed_schedule()
121 doh * atomic_read(&least->weight)) { in ip_vs_sed_schedule()
132 atomic_read(&least->weight), loh); in ip_vs_sed_schedule()
Dip_vs_wlc.c94 if (atomic_read(&least->weight) > 0) { in ip_vs_wlc_schedule()
109 if (loh * atomic_read(&dest->weight) > in ip_vs_wlc_schedule()
110 doh * atomic_read(&least->weight)) { in ip_vs_wlc_schedule()
121 atomic_read(&least->weight), loh); in ip_vs_wlc_schedule()
Dip_vs_nq.c102 if (atomic_read(&least->weight) > 0) { in ip_vs_nq_schedule()
129 if (loh * atomic_read(&dest->weight) > in ip_vs_nq_schedule()
130 doh * atomic_read(&least->weight)) { in ip_vs_nq_schedule()
142 atomic_read(&least->weight), loh); in ip_vs_nq_schedule()
Dip_vs_lblcr.c181 if ((atomic_read(&least->weight) > 0) in ip_vs_dest_set_min()
197 if ((loh * atomic_read(&dest->weight) > in ip_vs_dest_set_min()
198 doh * atomic_read(&least->weight)) in ip_vs_dest_set_min()
211 atomic_read(&least->weight), loh); in ip_vs_dest_set_min()
230 if (atomic_read(&most->weight) > 0) { in ip_vs_dest_set_max()
246 if ((moh * atomic_read(&dest->weight) < in ip_vs_dest_set_max()
247 doh * atomic_read(&most->weight)) in ip_vs_dest_set_max()
248 && (atomic_read(&dest->weight) > 0)) { in ip_vs_dest_set_max()
260 atomic_read(&most->weight), moh); in ip_vs_dest_set_max()
726 if (atomic_read(&least->weight) > 0) { in __ip_vs_wlc_schedule()
[all …]
Dip_vs_lblc.c476 if (atomic_read(&least->weight) > 0) { in __ip_vs_wlc_schedule()
492 if (loh * atomic_read(&dest->weight) > in __ip_vs_wlc_schedule()
493 doh * atomic_read(&least->weight)) { in __ip_vs_wlc_schedule()
504 atomic_read(&least->weight), loh); in __ip_vs_wlc_schedule()
517 if (atomic_read(&dest->activeconns) > atomic_read(&dest->weight)) { in is_overloaded()
525 < atomic_read(&d->weight)) { in is_overloaded()
562 || atomic_read(&dest->weight) <= 0 in ip_vs_lblc_schedule()
Dip_vs_rr.c71 if (atomic_read(&dest->weight) > 0) in ip_vs_rr_schedule()
86 atomic_read(&dest->refcnt), atomic_read(&dest->weight)); in ip_vs_rr_schedule()
Dip_vs_lc.c82 if (atomic_read(&least->weight) > 0) { in ip_vs_lc_schedule()
95 if (atomic_read(&dest->weight) == 0) in ip_vs_lc_schedule()
Dip_vs_sh.c190 if (atomic_read(&dest->activeconns) > atomic_read(&dest->weight)*2) { in is_overloaded()
212 || atomic_read(&dest->weight) <= 0 in ip_vs_sh_schedule()
Dip_vs_dh.c193 if (atomic_read(&dest->activeconns) > atomic_read(&dest->weight)*2) { in is_overloaded()
215 || atomic_read(&dest->weight) <= 0 in ip_vs_dh_schedule()
Dip_vs_ctl.c675 atomic_set(&dest->weight, ur->weight); in __ip_vs_update_dest()
778 if (ur->weight < 0) { in ip_vs_add_dest()
877 if (ur->weight < 0) { in ip_vs_edit_dest()
1545 atomic_read(&dest->weight), in ip_vs_get_info()
1588 atomic_read(&dest->weight), in ip_vs_get_info()
1915 entry.weight = atomic_read(&dest->weight); in __ip_vs_get_dest_entries()
Dip_vs_conn.c1170 (atomic_read(&dest->weight) == 0))) { in ip_vs_check_template()
/linux-2.4.37.9/kernel/
Dsched.c146 int weight; in goodness() local
153 weight = -1; in goodness()
168 weight = p->counter; in goodness()
169 if (!weight) in goodness()
176 weight += PROC_CHANGE_PENALTY; in goodness()
181 weight += 1; in goodness()
182 weight += 20 - p->nice; in goodness()
191 weight = 1000 + p->rt_priority; in goodness()
193 return weight; in goodness()
609 int weight = goodness(p, this_cpu, prev->active_mm); in schedule() local
[all …]
/linux-2.4.37.9/net/sched/
Dsch_cbq.c122 long weight; /* Relative allotment: see below */ member
1103 cl->quantum = (cl->weight*cl->allot*q->nclasses[prio])/ in cbq_normalize_quanta()
1316 q->quanta[cl->priority] -= cl->weight; in cbq_rmprio()
1323 q->quanta[cl->priority] += cl->weight; in cbq_addprio()
1333 if (wrr->weight) in cbq_set_wrr()
1334 cl->weight = wrr->weight; in cbq_set_wrr()
1433 q->link.weight = q->link.R_tab->rate.rate; in cbq_init()
1505 opt.weight = cl->weight; in cbq_dump_wrr()
1937 cl->weight = cl->R_tab->rate.rate; in cbq_change_class()
/linux-2.4.37.9/include/linux/
Dnetdevice.h351 int weight; member
772 dev->quota += dev->weight; in __netif_rx_schedule()
774 dev->quota = dev->weight; in __netif_rx_schedule()
Dpkt_sched.h359 __u32 weight; member
/linux-2.4.37.9/include/net/
Dip_vs.h117 int weight; /* destination weight */ member
177 int weight; /* destination weight */ member
487 atomic_t weight; /* server weight */ member
/linux-2.4.37.9/net/core/
Ddev.c1631 dev->quota += dev->weight; in net_rx_action()
1633 dev->quota = dev->weight; in net_rx_action()
2782 queue->blog_dev.weight = weight_p; in net_dev_init()
/linux-2.4.37.9/drivers/net/tokenring/
Dsmctr.c785 long weight; in smctr_decode_firmware() local
792 weight = *(long *)(tp->ptr_ucode + WEIGHT_OFFSET); in smctr_decode_firmware()
799 while(weight) in smctr_decode_firmware()
802 while((tree + branch)->tag != LEAF && weight) in smctr_decode_firmware()
808 weight--; in smctr_decode_firmware()
/linux-2.4.37.9/Documentation/networking/
DNAPI_HOWTO.txt203 /* next register my weight/quanta; can be overriden in /proc */
204 dev->weight = 16;
/linux-2.4.37.9/drivers/net/
Dibmveth.c900 netdev->weight = 16; in ibmveth_probe()
Dtitan_ge.c2166 netdev->weight = 64;
Dgt64240eth.c866 dev->weight = 64; in gt64240_probe1()
Dmv64340_eth.c1289 dev->weight = 64;
D8139cp.c1746 dev->weight = 16; /* arbitrary? from NAPI_HOWTO.txt. */ in cp_init_one()

12