Lines Matching refs:least
23 * n, serverSet[dest_ip] <- {weighted least-conn node};
25 * n <- {least-conn (alive) node in serverSet[dest_ip]};
29 * n <- {weighted least-conn node};
170 /* get weighted least-connection node in the destination set */
174 struct ip_vs_dest *dest, *least;
183 least = e->dest;
184 if (least->flags & IP_VS_DEST_F_OVERLOAD)
187 if ((atomic_read(&least->weight) > 0)
188 && (least->flags & IP_VS_DEST_F_AVAILABLE)) {
189 loh = atomic_read(&least->activeconns) * 50
190 + atomic_read(&least->inactconns);
197 /* find the destination with the weighted least load */
207 doh * atomic_read(&least->weight))
209 least = dest;
217 NIPQUAD(least->addr), ntohs(least->port),
218 atomic_read(&least->activeconns),
219 atomic_read(&least->refcnt),
220 atomic_read(&least->weight), loh);
221 return least;
676 struct ip_vs_dest *dest, *least;
701 least = dest;
702 loh = atomic_read(&least->activeconns) * 50
703 + atomic_read(&least->inactconns);
710 * Find the destination with the least load.
720 doh * atomic_read(&least->weight)) {
721 least = dest;
728 NIPQUAD(least->addr), ntohs(least->port),
729 atomic_read(&least->activeconns),
730 atomic_read(&least->refcnt),
731 atomic_read(&least->weight), loh);
733 return least;