diff options
author | David S. Miller <davem@davemloft.net> | 2012-07-10 09:52:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-11 07:40:06 +0200 |
commit | 794785bf12d5d6ad7f557d78d203bb0bbfcd8da2 (patch) | |
tree | f3f869abc60b3bec84528bdf9a84d73824037dae /net/decnet | |
parent | tcp: Maintain dynamic metrics in local cache. (diff) | |
download | linux-794785bf12d5d6ad7f557d78d203bb0bbfcd8da2.tar.xz linux-794785bf12d5d6ad7f557d78d203bb0bbfcd8da2.zip |
net: Don't report route RTT metric value in cache dumps.
We don't maintain it dynamically any longer, so reporting it would
be extremely misleading. Report zero instead.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet')
-rw-r--r-- | net/decnet/dn_route.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c index 6e74b3f110bc..707027fae8ab 100644 --- a/net/decnet/dn_route.c +++ b/net/decnet/dn_route.c @@ -1812,12 +1812,11 @@ static int dn_rt_cache_seq_show(struct seq_file *seq, void *v) char buf1[DN_ASCBUF_LEN], buf2[DN_ASCBUF_LEN]; seq_printf(seq, "%-8s %-7s %-7s %04d %04d %04d\n", - rt->dst.dev ? rt->dst.dev->name : "*", - dn_addr2asc(le16_to_cpu(rt->rt_daddr), buf1), - dn_addr2asc(le16_to_cpu(rt->rt_saddr), buf2), - atomic_read(&rt->dst.__refcnt), - rt->dst.__use, - (int) dst_metric(&rt->dst, RTAX_RTT)); + rt->dst.dev ? rt->dst.dev->name : "*", + dn_addr2asc(le16_to_cpu(rt->rt_daddr), buf1), + dn_addr2asc(le16_to_cpu(rt->rt_saddr), buf2), + atomic_read(&rt->dst.__refcnt), + rt->dst.__use, 0); return 0; } |