]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Dec 2011 20:47:16 +0000 (15:47 -0500)
commit5756f58bed3826842e8de7c3d55a5553cdae5f2b
treeea154ab2f82d422b1d6ed835c89acdb16b47d4f7
parentcdb6ba4efd9e3b8a14a5202b6cfabfd350e644f7
ipv4: reintroduce route cache garbage collector

Commit 4c4d000e0ef (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>
net/ipv4/route.c