]> git.baikalelectronics.ru Git - kernel.git/commit
ip: speedup /proc/net/rt_cache handling
authorEric Dumazet <dada1@cosmosbay.com>
Thu, 28 Aug 2008 08:11:25 +0000 (01:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Aug 2008 08:11:25 +0000 (01:11 -0700)
commitb65ba01961b87dd0672ce868fc29af5eacdb1b5d
tree5af86658a09241d08694558f976e93d29e526762
parent9510a2bd60a23e1cdbcf99dd758a339eca1ed2fe
ip: speedup /proc/net/rt_cache handling

When scanning route cache hash table, we can avoid taking locks for
empty buckets.  Both /proc/net/rt_cache and NETLINK RTM_GETROUTE
interface are taken into account.

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