]> err.no Git - linux-2.6/commit
[IPV6]: Audit all ip6_dst_lookup/ip6_dst_store calls
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 31 Jul 2006 03:19:33 +0000 (20:19 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 2 Aug 2006 20:38:14 +0000 (13:38 -0700)
commit497c615abad7ee81994dd592194535aea2aad617
tree86bb23e49071ea1bc867232d576b2d4ece31eb4d
parent679e898a4742d4a4a47430b67fd68a789a73dcfd
[IPV6]: Audit all ip6_dst_lookup/ip6_dst_store calls

The current users of ip6_dst_lookup can be divided into two classes:

1) The caller holds no locks and is in user-context (UDP).
2) The caller does not want to lookup the dst cache at all.

The second class covers everyone except UDP because most people do
the cache lookup directly before calling ip6_dst_lookup.  This patch
adds ip6_sk_dst_lookup for the first class.

Similarly ip6_dst_store users can be divded into those that need to
take the socket dst lock and those that don't.  This patch adds
__ip6_dst_store for those (everyone except UDP/datagram) that don't
need an extra lock.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_route.h
include/net/ipv6.h
net/dccp/ipv6.c
net/ipv6/af_inet6.c
net/ipv6/inet6_connection_sock.c
net/ipv6/ip6_output.c
net/ipv6/tcp_ipv6.c
net/ipv6/udp.c