diff mbox

[net-next-2.6,IPV6] cleanup: remove unused IPV6 stats entries.

Message ID CAGXs5wVxkqLeCEMV6Lanczj-zarv6iu4ekdjk5zZKaadabwvbw@mail.gmail.com
State Rejected, archived
Delegated to: David Miller
Headers show

Commit Message

Kevin Wilson Oct. 18, 2011, 5:36 a.m. UTC
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>

Comments

Eric Dumazet Oct. 18, 2011, 6:44 a.m. UTC | #1
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 ?



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

Patch

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);