netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] docs: Add neigh/gc_thresh3 and route/max_size documentation.
@ 2010-11-08 19:13 Ben Greear
  2010-11-08 19:13 ` [PATCH 2/2] IPv6: Warn users when route/max_entries is reached Ben Greear
  2010-11-12 22:04 ` [PATCH 1/2] docs: Add neigh/gc_thresh3 and route/max_size documentation David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Ben Greear @ 2010-11-08 19:13 UTC (permalink / raw)
  To: netdev; +Cc: Ben Greear

Signed-off-by: Ben Greear <greearb@candelatech.com>
---
:100644 100644 f350c69... 7c5cca2... M	Documentation/networking/ip-sysctl.txt
 Documentation/networking/ip-sysctl.txt |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/Documentation/networking/ip-sysctl.txt b/Documentation/networking/ip-sysctl.txt
index f350c69..7c5cca2 100644
--- a/Documentation/networking/ip-sysctl.txt
+++ b/Documentation/networking/ip-sysctl.txt
@@ -20,6 +20,15 @@ ip_no_pmtu_disc - BOOLEAN
 min_pmtu - INTEGER
 	default 562 - minimum discovered Path MTU
 
+route/max_size - INTEGER
+	Maximum number of routes allowed in the kernel.  Increase
+	this when using large numbers of interfaces and/or routes.
+
+neigh/default/gc_thresh3 - INTEGER
+	Maximum number of neighbor entries allowed.  Increase this
+	when using large numbers of interfaces and when communicating
+	with large numbers of directly-connected peers. 
+
 mtu_expires - INTEGER
 	Time, in seconds, that cached PMTU information is kept.
 
-- 
1.6.2.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] IPv6:  Warn users when route/max_entries is reached.
  2010-11-08 19:13 [PATCH 1/2] docs: Add neigh/gc_thresh3 and route/max_size documentation Ben Greear
@ 2010-11-08 19:13 ` Ben Greear
  2010-11-08 21:09   ` Ben Greear
  2010-11-12 22:04 ` [PATCH 1/2] docs: Add neigh/gc_thresh3 and route/max_size documentation David Miller
  1 sibling, 1 reply; 5+ messages in thread
From: Ben Greear @ 2010-11-08 19:13 UTC (permalink / raw)
  To: netdev; +Cc: Ben Greear

Signed-off-by: Ben Greear <greearb@candelatech.com>
---
:100644 100644 a275c6e... 348b34c... M	net/ipv6/route.c
 net/ipv6/route.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index a275c6e..348b34c 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -1060,8 +1060,12 @@ static int ip6_dst_gc(struct dst_ops *ops)
 	unsigned long rt_last_gc = net->ipv6.ip6_rt_last_gc;
 
 	if (time_after(rt_last_gc + rt_min_interval, now) &&
-	    atomic_read(&ops->entries) <= rt_max_size)
+	    atomic_read(&ops->entries) <= rt_max_size) {
+		if (net_ratelimit())
+			pr_warning("IPv6:  Maximum number of routes reached,"
+				   " consider increasing route/max_size.\n");
 		goto out;
+	}
 
 	net->ipv6.ip6_rt_gc_expire++;
 	fib6_run_gc(net->ipv6.ip6_rt_gc_expire, net);
-- 
1.6.2.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] IPv6:  Warn users when route/max_entries is reached.
  2010-11-08 19:13 ` [PATCH 2/2] IPv6: Warn users when route/max_entries is reached Ben Greear
@ 2010-11-08 21:09   ` Ben Greear
  2010-11-08 21:22     ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Greear @ 2010-11-08 21:09 UTC (permalink / raw)
  To: Ben Greear; +Cc: netdev

On 11/08/2010 11:13 AM, Ben Greear wrote:
> Signed-off-by: Ben Greear<greearb@candelatech.com>
> ---
> :100644 100644 a275c6e... 348b34c... M	net/ipv6/route.c
>   net/ipv6/route.c |    6 +++++-
>   1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/net/ipv6/route.c b/net/ipv6/route.c
> index a275c6e..348b34c 100644
> --- a/net/ipv6/route.c
> +++ b/net/ipv6/route.c
> @@ -1060,8 +1060,12 @@ static int ip6_dst_gc(struct dst_ops *ops)
>   	unsigned long rt_last_gc = net->ipv6.ip6_rt_last_gc;
>
>   	if (time_after(rt_last_gc + rt_min_interval, now)&&
> -	    atomic_read(&ops->entries)<= rt_max_size)
> +	    atomic_read(&ops->entries)<= rt_max_size) {
> +		if (net_ratelimit())
> +			pr_warning("IPv6:  Maximum number of routes reached,"
> +				   " consider increasing route/max_size.\n");
>   		goto out;
> +	}
>
>   	net->ipv6.ip6_rt_gc_expire++;
>   	fib6_run_gc(net->ipv6.ip6_rt_gc_expire, net);

Please don't apply this.  I mis-read this code and that warning
is useless at best in this place.

Thanks,
Ben


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] IPv6: Warn users when route/max_entries is reached.
  2010-11-08 21:09   ` Ben Greear
@ 2010-11-08 21:22     ` David Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2010-11-08 21:22 UTC (permalink / raw)
  To: greearb; +Cc: netdev

From: Ben Greear <greearb@candelatech.com>
Date: Mon, 08 Nov 2010 13:09:29 -0800

> On 11/08/2010 11:13 AM, Ben Greear wrote:
>> Signed-off-by: Ben Greear<greearb@candelatech.com>
 ...
> Please don't apply this.  I mis-read this code and that warning
> is useless at best in this place.

Ok.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] docs: Add neigh/gc_thresh3 and route/max_size documentation.
  2010-11-08 19:13 [PATCH 1/2] docs: Add neigh/gc_thresh3 and route/max_size documentation Ben Greear
  2010-11-08 19:13 ` [PATCH 2/2] IPv6: Warn users when route/max_entries is reached Ben Greear
@ 2010-11-12 22:04 ` David Miller
  1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2010-11-12 22:04 UTC (permalink / raw)
  To: greearb; +Cc: netdev

From: Ben Greear <greearb@candelatech.com>
Date: Mon,  8 Nov 2010 11:13:48 -0800

> Signed-off-by: Ben Greear <greearb@candelatech.com>

Applied.

> +	with large numbers of directly-connected peers. 

This line has trailing whitespace, please avoid that in the
future so I don't have to correct your patches by hand.

Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-11-12 22:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-08 19:13 [PATCH 1/2] docs: Add neigh/gc_thresh3 and route/max_size documentation Ben Greear
2010-11-08 19:13 ` [PATCH 2/2] IPv6: Warn users when route/max_entries is reached Ben Greear
2010-11-08 21:09   ` Ben Greear
2010-11-08 21:22     ` David Miller
2010-11-12 22:04 ` [PATCH 1/2] docs: Add neigh/gc_thresh3 and route/max_size documentation David Miller

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