]> 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)
commit10b0a7a858b94912dbe46c54504e1dd640db5a98
tree84eafe4afed26328cfe3098ff7103c1222d70aa8
parent42dfbe7e416a7da10ac8eb110f690595b95123bb
ipv4: rt_cache_valid must check expired routes

commit 49de5505b39 (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