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)
commit4331debc51ee1ce319f4a389484e0e8e05de2aca
tree84eafe4afed26328cfe3098ff7103c1222d70aa8
parent6d8d2dd8ad92ec89f540e73b7a46c5835a7a06a6
ipv4: rt_cache_valid must check expired routes

commit d2d68ba9fe8 (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