* [PATCH] ipv4: don't remove /proc/net/rt_acct
@ 2010-01-17 13:32 Alexey Dobriyan
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Dobriyan @ 2010-01-17 13:32 UTC (permalink / raw)
To: davem; +Cc: netdev
/proc/net/rt_acct is not created if NET_CLS_ROUTE=n.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
net/ipv4/route.c | 2 ++
1 file changed, 2 insertions(+)
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -586,7 +586,9 @@ static void __net_exit ip_rt_do_proc_exit(struct net *net)
{
remove_proc_entry("rt_cache", net->proc_net_stat);
remove_proc_entry("rt_cache", net->proc_net);
+#ifdef CONFIG_NET_CLS_ROUTE
remove_proc_entry("rt_acct", net->proc_net);
+#endif
}
static struct pernet_operations ip_rt_proc_ops __net_initdata = {
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ipv4: don't remove /proc/net/rt_acct
@ 2010-01-18 3:25 David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-01-18 3:25 UTC (permalink / raw)
To: adobriyan; +Cc: netdev
Applied, thanks Alexey.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-18 3:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-18 3:25 [PATCH] ipv4: don't remove /proc/net/rt_acct David Miller
-- strict thread matches above, loose matches on Subject: below --
2010-01-17 13:32 Alexey Dobriyan
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).