[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1336627923.12504.128.camel@edumazet-glaptop>
Date: Thu, 10 May 2012 07:32:03 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Nikhil Agarwal <hi2nikhil@...il.com>
Cc: linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
herbert@...dor.apana.org.au, benjamin.thery@...l.net,
davem@...emloft.net, pstaszewski@...are.pl
Subject: Re: Fwd: Memory exhaust issue with only IPsec policies configured
on continuous traffic
On Thu, 2012-05-10 at 07:27 +0200, Eric Dumazet wrote:
> Yep, we can use DST_NOCACHE
>
Please try following patch :
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 5773f5d..172c251 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -2896,6 +2896,7 @@ struct dst_entry *ipv4_blackhole_route(struct net *net, struct dst_entry *dst_or
if (rt) {
struct dst_entry *new = &rt->dst;
+ new->flags |= DST_NOCACHE;
new->__use = 1;
new->input = dst_discard;
new->output = dst_discard;
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists