]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipv4: reintroduce route cache garbage collector
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 21 Dec 2011 20:47:16 +0000 (15:47 -0500)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 10 Jan 2012 21:02:30 +0000 (13:02 -0800)
commitebab2f2a838c323f5aa27fa89827251588f7f061
treef0b1ce274e482faa1bef78e0cf2cfb740c74109a
parentaad0e1cc14fa82a36552138af2bce6305996c1fa
ipv4: reintroduce route cache garbage collector

[ Upstream commit 9f28a2fc0bd77511f649c0a788c7bf9a5fd04edb ]

Commit 2c8cec5c10b (ipv4: Cache learned PMTU information in inetpeer)
removed IP route cache garbage collector a bit too soon, as this gc was
responsible for expired routes cleanup, releasing their neighbour
reference.

As pointed out by Robert Gladewitz, recent kernels can fill and exhaust
their neighbour cache.

Reintroduce the garbage collection, since we'll have to wait our
neighbour lookups become refcount-less to not depend on this stuff.

Reported-by: Robert Gladewitz <gladewitz@gmx.de>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/route.c