[IPVS]: Cleanup IP_VS_DBG statements.
From: Roberto Nibali <ratz@drugphish.ch> The attached patch (against current -GIT) is a cleanup patch which does following: o lookup debug messages shifted back to 9 o added more informational value to flags and refcnt since those entries can be in multiple referenced structures o cleanup 80 char violation It's the prepatch to the session pool implementation and helps very much to debug and monitor important variables and structures regarding the threshold limitation and persistency without the thousands of lookup messages which noone is interested in. Signed-off-by: Horms <horms@verge.net.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
fd30333d0f
commit
4b5bdf5cc3
@@ -448,7 +448,7 @@ ip_vs_service_get(__u32 fwmark, __u16 protocol, __u32 vaddr, __u16 vport)
|
||||
out:
|
||||
read_unlock(&__ip_vs_svc_lock);
|
||||
|
||||
IP_VS_DBG(6, "lookup service: fwm %u %s %u.%u.%u.%u:%u %s\n",
|
||||
IP_VS_DBG(9, "lookup service: fwm %u %s %u.%u.%u.%u:%u %s\n",
|
||||
fwmark, ip_vs_proto_name(protocol),
|
||||
NIPQUAD(vaddr), ntohs(vport),
|
||||
svc?"hit":"not hit");
|
||||
@@ -598,7 +598,7 @@ ip_vs_trash_get_dest(struct ip_vs_service *svc, __u32 daddr, __u16 dport)
|
||||
*/
|
||||
list_for_each_entry_safe(dest, nxt, &ip_vs_dest_trash, n_list) {
|
||||
IP_VS_DBG(3, "Destination %u/%u.%u.%u.%u:%u still in trash, "
|
||||
"refcnt=%d\n",
|
||||
"dest->refcnt=%d\n",
|
||||
dest->vfwmark,
|
||||
NIPQUAD(dest->addr), ntohs(dest->port),
|
||||
atomic_read(&dest->refcnt));
|
||||
@@ -805,7 +805,7 @@ ip_vs_add_dest(struct ip_vs_service *svc, struct ip_vs_dest_user *udest)
|
||||
dest = ip_vs_trash_get_dest(svc, daddr, dport);
|
||||
if (dest != NULL) {
|
||||
IP_VS_DBG(3, "Get destination %u.%u.%u.%u:%u from trash, "
|
||||
"refcnt=%d, service %u/%u.%u.%u.%u:%u\n",
|
||||
"dest->refcnt=%d, service %u/%u.%u.%u.%u:%u\n",
|
||||
NIPQUAD(daddr), ntohs(dport),
|
||||
atomic_read(&dest->refcnt),
|
||||
dest->vfwmark,
|
||||
@@ -950,7 +950,8 @@ static void __ip_vs_del_dest(struct ip_vs_dest *dest)
|
||||
atomic_dec(&dest->svc->refcnt);
|
||||
kfree(dest);
|
||||
} else {
|
||||
IP_VS_DBG(3, "Moving dest %u.%u.%u.%u:%u into trash, refcnt=%d\n",
|
||||
IP_VS_DBG(3, "Moving dest %u.%u.%u.%u:%u into trash, "
|
||||
"dest->refcnt=%d\n",
|
||||
NIPQUAD(dest->addr), ntohs(dest->port),
|
||||
atomic_read(&dest->refcnt));
|
||||
list_add(&dest->n_list, &ip_vs_dest_trash);
|
||||
|
Reference in New Issue
Block a user