Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next-2.6] [IPV6] cleanup: remove unused IPV6 stats entries.
@ 2011-10-18  5:36 Kevin Wilson
  2011-10-18  6:44 ` Eric Dumazet
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Wilson @ 2011-10-18  5:36 UTC (permalink / raw)
  To: davem, netdev

[-- Attachment #1: Type: text/plain, Size: 185 bytes --]

Hi,

This cleanup patch removes three unused IPV6 stats entries
from rt6_statistics struct. (ip6_fib.h).

Regards,
  wkevils@gmail.com


Signed-off-by: Kevin Wilson <wkevils@gmail.com>

[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1180 bytes --]

diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h
index 5735a0f..ac6f91b 100644
--- a/include/net/ip6_fib.h
+++ b/include/net/ip6_fib.h
@@ -139,11 +139,8 @@ struct fib6_walker_t {
 };
 
 struct rt6_statistics {
-	__u32		fib_nodes;
 	__u32		fib_route_nodes;
-	__u32		fib_rt_alloc;		/* permanent routes	*/
 	__u32		fib_rt_entries;		/* rt entries in table	*/
-	__u32		fib_rt_cache;		/* cache routes		*/
 	__u32		fib_discarded_routes;
 };
 
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index fb545ed..7f7a80c 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -2672,12 +2672,9 @@ static const struct file_operations ipv6_route_proc_fops = {
 static int rt6_stats_seq_show(struct seq_file *seq, void *v)
 {
 	struct net *net = (struct net *)seq->private;
-	seq_printf(seq, "%04x %04x %04x %04x %04x %04x %04x\n",
-		   net->ipv6.rt6_stats->fib_nodes,
+	seq_printf(seq, "%04x %04x %04x %04x\n",
 		   net->ipv6.rt6_stats->fib_route_nodes,
-		   net->ipv6.rt6_stats->fib_rt_alloc,
 		   net->ipv6.rt6_stats->fib_rt_entries,
-		   net->ipv6.rt6_stats->fib_rt_cache,
 		   dst_entries_get_slow(&net->ipv6.ip6_dst_ops),
 		   net->ipv6.rt6_stats->fib_discarded_routes);
 

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

* Re: [PATCH net-next-2.6] [IPV6] cleanup: remove unused IPV6 stats entries.
  2011-10-18  5:36 [PATCH net-next-2.6] [IPV6] cleanup: remove unused IPV6 stats entries Kevin Wilson
@ 2011-10-18  6:44 ` Eric Dumazet
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Dumazet @ 2011-10-18  6:44 UTC (permalink / raw)
  To: Kevin Wilson; +Cc: davem, netdev

Le mardi 18 octobre 2011 à 07:36 +0200, Kevin Wilson a écrit :
> Hi,
> 
> This cleanup patch removes three unused IPV6 stats entries
> from rt6_statistics struct. (ip6_fib.h).
> 
> Regards,
>   wkevils@gmail.com
> 
> 
> Signed-off-by: Kevin Wilson <wkevils@gmail.com>

Hi Kevin

Did you change all /proc/net/rt6_stats users so that they still continue
to work, including closed source ones ?

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

end of thread, other threads:[~2011-10-18  6:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-18  5:36 [PATCH net-next-2.6] [IPV6] cleanup: remove unused IPV6 stats entries Kevin Wilson
2011-10-18  6:44 ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox