|
@@ -195,12 +195,12 @@ ip_vs_wrr_schedule(struct ip_vs_service *svc, const struct sk_buff *skb)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- IP_VS_DBG(6, "WRR: server %u.%u.%u.%u:%u "
|
|
|
- "activeconns %d refcnt %d weight %d\n",
|
|
|
- NIPQUAD(dest->addr.ip), ntohs(dest->port),
|
|
|
- atomic_read(&dest->activeconns),
|
|
|
- atomic_read(&dest->refcnt),
|
|
|
- atomic_read(&dest->weight));
|
|
|
+ IP_VS_DBG_BUF(6, "WRR: server %s:%u "
|
|
|
+ "activeconns %d refcnt %d weight %d\n",
|
|
|
+ IP_VS_DBG_ADDR(svc->af, &dest->addr), ntohs(dest->port),
|
|
|
+ atomic_read(&dest->activeconns),
|
|
|
+ atomic_read(&dest->refcnt),
|
|
|
+ atomic_read(&dest->weight));
|
|
|
|
|
|
out:
|
|
|
write_unlock(&svc->sched_lock);
|
|
@@ -213,6 +213,9 @@ static struct ip_vs_scheduler ip_vs_wrr_scheduler = {
|
|
|
.refcnt = ATOMIC_INIT(0),
|
|
|
.module = THIS_MODULE,
|
|
|
.n_list = LIST_HEAD_INIT(ip_vs_wrr_scheduler.n_list),
|
|
|
+#ifdef CONFIG_IP_VS_IPV6
|
|
|
+ .supports_ipv6 = 1,
|
|
|
+#endif
|
|
|
.init_service = ip_vs_wrr_init_svc,
|
|
|
.done_service = ip_vs_wrr_done_svc,
|
|
|
.update_service = ip_vs_wrr_update_svc,
|