]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: rt_cache_valid must check expired routes
authorEric Dumazet <edumazet@google.com>
Wed, 25 Jul 2012 05:11:23 +0000 (05:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jul 2012 22:24:14 +0000 (15:24 -0700)
commit70ddf767842eec70a515774f5bccd8cfb4517331
tree84eafe4afed26328cfe3098ff7103c1222d70aa8
parent2ba70c8e3d6ac3429fdcfd7d3319d01199f3f610
ipv4: rt_cache_valid must check expired routes

commit 9defcaa2a5c (ipv4: Cache input routes in fib_info nexthops.)
introduced rt_cache_valid() helper. It unfortunately doesn't check if
route is expired before caching it.

I noticed sk_setup_caps() was constantly called on a tcp workload.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c