Lines Matching refs:weight
28 * decrement rweight1 and rweight2 by the destination weight
33 * by weight
50 int overhead2, total_weight = 0, weight;
54 /* Generate a random weight between [0,sum of all weights) */
57 weight = atomic_read(&dest->weight);
58 if (weight > 0) {
59 total_weight += weight;
82 weight = atomic_read(&dest->weight);
83 if (weight <= 0)
86 rweight1 -= weight;
87 rweight2 -= weight;
91 weight1 = weight;
97 weight2 = weight;
109 IP_VS_DBG_BUF(6, "twos: server %s:%u conns %d refcnt %d weight %d\n",
113 atomic_read(&choice1->weight));