Skip to content

Commit f3d3f61

Browse files
Min Zhangdavem330
authored andcommitted
ipv6: remove sysctl jiffies conversion on gc_elasticity and min_adv_mss
sysctl output ipv6 gc_elasticity and min_adv_mss as values divided by HZ. However, they are not in unit of jiffies, since ip6_rt_min_advmss refers to packet size and ip6_rt_fc_elasticity is used as scaler as in expire>>ip6_rt_gc_elasticity, so replace the jiffies conversion handler will regular handler for them. This has impact on scripts that are currently working assuming the divide by HZ, will yield different results with this patch in place. Signed-off-by: Min Zhang <mzhang@mvista.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 2f09a4d commit f3d3f61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/ipv6/route.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2580,7 +2580,7 @@ ctl_table ipv6_route_table_template[] = {
25802580
.data = &init_net.ipv6.sysctl.ip6_rt_gc_elasticity,
25812581
.maxlen = sizeof(int),
25822582
.mode = 0644,
2583-
.proc_handler = proc_dointvec_jiffies,
2583+
.proc_handler = proc_dointvec,
25842584
},
25852585
{
25862586
.procname = "mtu_expires",
@@ -2594,7 +2594,7 @@ ctl_table ipv6_route_table_template[] = {
25942594
.data = &init_net.ipv6.sysctl.ip6_rt_min_advmss,
25952595
.maxlen = sizeof(int),
25962596
.mode = 0644,
2597-
.proc_handler = proc_dointvec_jiffies,
2597+
.proc_handler = proc_dointvec,
25982598
},
25992599
{
26002600
.procname = "gc_min_interval_ms",

0 commit comments

Comments
 (0)