* [PATCH v2 2/2] ipv6: Warn users if maximum number of routes is reached.
@ 2010-11-08 22:33 Ben Greear
2010-11-12 22:04 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Ben Greear @ 2010-11-08 22:33 UTC (permalink / raw)
To: netdev; +Cc: Ben Greear
This gives users at least some clue as to what the problem
might be and how to go about fixing it.
Signed-off-by: Ben Greear <greearb@candelatech.com>
---
v1 -> v2: Put warning in correct place.
:100644 100644 a275c6e... 9d9d0e9... 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..9d9d0e9 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -1941,8 +1941,12 @@ struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
struct rt6_info *rt = ip6_dst_alloc(&net->ipv6.ip6_dst_ops);
struct neighbour *neigh;
- if (rt == NULL)
+ if (rt == NULL) {
+ if (net_ratelimit())
+ pr_warning("IPv6: Maximum number of routes reached,"
+ " consider increasing route/max_size.\n");
return ERR_PTR(-ENOMEM);
+ }
dev_hold(net->loopback_dev);
in6_dev_hold(idev);
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2 2/2] ipv6: Warn users if maximum number of routes is reached.
2010-11-08 22:33 [PATCH v2 2/2] ipv6: Warn users if maximum number of routes is reached Ben Greear
@ 2010-11-12 22:04 ` David Miller
0 siblings, 0 replies; 2+ 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 14:33:48 -0800
> This gives users at least some clue as to what the problem
> might be and how to go about fixing it.
>
> Signed-off-by: Ben Greear <greearb@candelatech.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-12 22:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-08 22:33 [PATCH v2 2/2] ipv6: Warn users if maximum number of routes is reached Ben Greear
2010-11-12 22:04 ` 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).