/* Get the maximum weight of the service destinations.  */
static int ip_vs_wrr_max_weight(struct ip_vs_service *svc)
/* Get the maximum weight of the service destinations.  */
static int ip_vs_wrr_max_weight(struct ip_vs_service *svc)
{
	struct ip_vs_dest *dest;
	int new_weight, weight = 0;
	list_for_each_entry(dest, &svc->destinations, n_list) {
		new_weight = atomic_read(&dest->weight);
		if (new_weight > weight)
			weight = new_weight;
	}
	return weight;
}