[Fwd: [PATCH] decnet: route cache showing RTT]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-------- Original Message --------
Subject: [PATCH] decnet: route cache showing RTT
Date: Fri, 18 Jul 2008 13:36:05 -0700
From: Stephen Hemminger <shemminger@xxxxxxxxxx>
Organisation: Vyatta
To: christine.caulfield@xxxxxxxxxxxxxx
CC: linux-decnet-user@xxxxxxxxxxxxxxxxxxxxx

Found while investigation of the incorrect scaling of metrics.

The round trip time metric is not set by any of the Decnet code so
it makes no sense to show it on /proc/net/decnet_cache.

Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxxxx>
Signed-off-by: Christine Caulfield <Christine.Caulfield@xxxxxxxxxxxxxx>

--- a/net/decnet/dn_route.c	2008-07-18 10:03:12.000000000 -0700
+++ b/net/decnet/dn_route.c	2008-07-18 10:03:31.000000000 -0700
@@ -1715,8 +1715,7 @@ static int dn_rt_cache_seq_show(struct s
 			dn_addr2asc(dn_ntohs(rt->rt_daddr), buf1),
 			dn_addr2asc(dn_ntohs(rt->rt_saddr), buf2),
 			atomic_read(&rt->u.dst.__refcnt),
-			rt->u.dst.__use,
-			(int) dst_metric(&rt->u.dst, RTAX_RTT));
+		        rt->u.dst.__use, 0);
 	return 0;
 }



--

Chrissie
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux