mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 22:58:29 +00:00
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>
This commit is contained in:
parent
51c5d0c4b1
commit
794785bf12
2 changed files with 15 additions and 18 deletions
|
@ -1816,8 +1816,7 @@ static int dn_rt_cache_seq_show(struct seq_file *seq, void *v)
|
||||||
dn_addr2asc(le16_to_cpu(rt->rt_daddr), buf1),
|
dn_addr2asc(le16_to_cpu(rt->rt_daddr), buf1),
|
||||||
dn_addr2asc(le16_to_cpu(rt->rt_saddr), buf2),
|
dn_addr2asc(le16_to_cpu(rt->rt_saddr), buf2),
|
||||||
atomic_read(&rt->dst.__refcnt),
|
atomic_read(&rt->dst.__refcnt),
|
||||||
rt->dst.__use,
|
rt->dst.__use, 0);
|
||||||
(int) dst_metric(&rt->dst, RTAX_RTT));
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -430,9 +430,7 @@ static int rt_cache_seq_show(struct seq_file *seq, void *v)
|
||||||
r->rt_flags, atomic_read(&r->dst.__refcnt),
|
r->rt_flags, atomic_read(&r->dst.__refcnt),
|
||||||
r->dst.__use, 0, (__force u32)r->rt_src,
|
r->dst.__use, 0, (__force u32)r->rt_src,
|
||||||
dst_metric_advmss(&r->dst) + 40,
|
dst_metric_advmss(&r->dst) + 40,
|
||||||
dst_metric(&r->dst, RTAX_WINDOW),
|
dst_metric(&r->dst, RTAX_WINDOW), 0,
|
||||||
(int)((dst_metric(&r->dst, RTAX_RTT) >> 3) +
|
|
||||||
dst_metric(&r->dst, RTAX_RTTVAR)),
|
|
||||||
r->rt_key_tos,
|
r->rt_key_tos,
|
||||||
-1, 0, 0, &len);
|
-1, 0, 0, &len);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue