[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <b6fcc0a0912180616m54c0d25dn56f008c9d736e505@mail.gmail.com>
Date: Fri, 18 Dec 2009 16:16:40 +0200
From: Alexey Dobriyan <adobriyan@...il.com>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, dlezcano@...ibm.com,
benjamin.thery@...l.net
Subject: [PATCH] netns: fix net.ipv6.route.gc_min_interval_ms in netns
Sorry for attachment, my patch sending facility is defunct right now.
Copying inline for review.
commit ee0270199605e58c76294f62ba8fbc0f583ccd3e
Author: Alexey Dobriyan <adobriyan@...il.com>
Date: Fri Dec 18 16:08:04 2009 +0200
netns: fix net.ipv6.route.gc_min_interval_ms in netns
sysctl table was copied, all right, but ->data for
net.ipv6.route.gc_min_interval_ms
was not reinitialized for "!= &init_net" case.
In init_net everthing works by accident due to correct ->data initialization
in source table.
Signed-off-by: Alexey Dobriyan <adobriyan@...il.com>
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index db3b273..c2bd74c 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -2630,6 +2630,7 @@ struct ctl_table *ipv6_route_sysctl_init(struct net *net)
table[6].data = &net->ipv6.sysctl.ip6_rt_gc_elasticity;
table[7].data = &net->ipv6.sysctl.ip6_rt_mtu_expires;
table[8].data = &net->ipv6.sysctl.ip6_rt_min_advmss;
+ table[9].data = &net->ipv6.sysctl.ip6_rt_gc_min_interval;
}
return table;
View attachment "gc-min-interval.patch" of type "text/x-diff" (963 bytes)
Powered by blists - more mailing lists