From: Robert Olsson <Robert.Olsson@data.slu.se>
To: "David S.Miller" <davem@davemloft.net>
Cc: Robert.Olsson@data.slu.se, netdev@oss.sgi.com
Subject: Re: [PATCH] gc_min_interval in milleseconds via /proc (fwd)
Date: Thu, 27 Jan 2005 13:13:04 +0100 [thread overview]
Message-ID: <16888.56016.608929.340640@robur.slu.se> (raw)
> David S. Miller wrote:
> It would, but since this is a user visible API we really can't
> change it.
Ok! But I haven't heard of any successful use of this paticaul API. :-)
> We could instead make another sysctl (perhaps name it something
> like "gc_min_interval_ms") to do what you propose, and then
> we'd keep the existing one around for compatibility.
All-right a new patch below.
--ro
--- net/ipv4/route.c.orig 2005-01-27 11:19:37.551668112 +0100
+++ net/ipv4/route.c 2005-01-27 12:34:14.089130976 +0100
@@ -2529,6 +2529,8 @@
.proc_handler = &proc_dointvec,
},
{
+ /* Deprecated. Use gc_min_interval_ms */
+
.ctl_name = NET_IPV4_ROUTE_GC_MIN_INTERVAL,
.procname = "gc_min_interval",
.data = &ip_rt_gc_min_interval,
@@ -2538,6 +2540,15 @@
.strategy = &sysctl_jiffies,
},
{
+ .ctl_name = NET_IPV4_ROUTE_GC_MIN_INTERVAL,
+ .procname = "gc_min_interval_ms",
+ .data = &ip_rt_gc_min_interval,
+ .maxlen = sizeof(unsigned long),
+ .mode = 0644,
+ .proc_handler = &proc_doulongvec_ms_jiffies_minmax,
+ .strategy = &sysctl_jiffies,
+ },
+ {
.ctl_name = NET_IPV4_ROUTE_GC_TIMEOUT,
.procname = "gc_timeout",
.data = &ip_rt_gc_timeout,
--- Documentation/filesystems/proc.txt.orig 2005-01-27 12:35:02.460777368 +0100
+++ Documentation/filesystems/proc.txt 2005-01-27 12:46:30.981106368 +0100
@@ -1709,12 +1709,13 @@
Writing to this file results in a flush of the routing cache.
-gc_elasticity, gc_interval, gc_min_interval, gc_tresh, gc_timeout,
-gc_thresh, gc_thresh1, gc_thresh2, gc_thresh3
---------------------------------------------------------------
+gc_elasticity, gc_interval, gc_min_interval_ms, gc_timeout, gc_thresh
+---------------------------------------------------------------------
Values to control the frequency and behavior of the garbage collection
-algorithm for the routing cache.
+algorithm for the routing cache. gc_min_interval is deprecated and replaced
+by gc_min_interval_ms.
+
max_size
--------
next reply other threads:[~2005-01-27 12:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-27 12:13 Robert Olsson [this message]
2005-01-31 6:56 ` [PATCH] gc_min_interval in milleseconds via /proc (fwd) David S. Miller
2005-01-31 18:01 ` Robert Olsson
2005-02-02 21:09 ` David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16888.56016.608929.340640@robur.slu.se \
--to=robert.olsson@data.slu.se \
--cc=davem@davemloft.net \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).