netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6.11 PATCH] /proc/net/stat/* cleanup
@ 2005-03-04 19:37 Olaf Rempel
       [not found] ` <20050424193007.0a687ef4.davem@davemloft.net>
  0 siblings, 1 reply; 3+ messages in thread
From: Olaf Rempel @ 2005-03-04 19:37 UTC (permalink / raw)
  To: netdev

hi list

in /proc/net/stat/[arp|ndisc]_cache the value "forced_gc_goal_miss" has no
associated member in struct neigh_statistics.

in /proc/net/stat/rt_cache the value "in_slow_mc" was printed, but without header
(16 header-names, 17 values)

patch is against vanilla 2.6.11

Olaf

diff -uN linux-2.6.11/net/core/neighbour.c.org linux-2.6.11/net/core/neighbour.c
--- linux-2.6.11/net/core/neighbour.c.org       2005-03-04 20:03:01.000000000 +0100
+++ linux-2.6.11/net/core/neighbour.c   2005-03-04 20:04:17.000000000 +0100
@@ -1948,7 +1948,7 @@
        struct neigh_statistics *st = v;

        if (v == SEQ_START_TOKEN) {
-               seq_printf(seq, "entries  allocs destroys hash_grows  lookups hits  res_failed  rcv_probes_mcast rcv_probes_ucast  periodic_gc_runs forced_gc_runs forced_gc_goal_miss\n");
+               seq_printf(seq, "entries  allocs destroys hash_grows  lookups hits  res_failed  rcv_probes_mcast rcv_probes_ucast  periodic_gc_runs forced_gc_runs\n");
                return 0;
        }

diff -uN linux-2.6.11/net/ipv4/route.c.org linux-2.6.11/net/ipv4/route.c
--- linux-2.6.11/net/ipv4/route.c.org   2005-03-04 19:45:54.000000000 +0100
+++ linux-2.6.11/net/ipv4/route.c       2005-03-04 19:47:58.000000000 +0100
@@ -393,7 +393,7 @@
        struct rt_cache_stat *st = v;

        if (v == SEQ_START_TOKEN) {
-               seq_printf(seq, "entries  in_hit in_slow_tot in_no_route in_brd in_martian_dst in_martian_src  out_hit out_slow_tot out_slow_mc  gc_total gc_ignored gc_goal_miss gc_dst_overflow in_hlist_search out_hlist_search\n");
+               seq_printf(seq, "entries  in_hit in_slow_tot in_slow_mc in_no_route in_brd in_martian_dst in_martian_src  out_hit out_slow_tot out_slow_mc  gc_total gc_ignored gc_goal_miss gc_dst_overflow in_hlist_search out_hlist_search\n");
                return 0;
        }

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-04-28 19:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-04 19:37 [2.6.11 PATCH] /proc/net/stat/* cleanup Olaf Rempel
     [not found] ` <20050424193007.0a687ef4.davem@davemloft.net>
2005-04-25 17:00   ` Olaf Rempel
2005-04-28 19:16     ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).