]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/ipv4/af_inet.c
net: build_ehash_secret() and rt_bind_peer() cleanups
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 19 Aug 2010 06:10:45 +0000 (06:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Aug 2010 07:50:16 +0000 (00:50 -0700)
commit49e8ab03ebcacd8e37660ffec20c0c46721a2800
tree78f17093ffdbf4e2cd788033f113888c472f0d7b
parent4da79504b2b41410dd56e9268c9ad403aa65e89c
net: build_ehash_secret() and rt_bind_peer() cleanups

Now cmpxchg() is available on all arches, we can use it in
build_ehash_secret() and rt_bind_peer() instead of using spinlocks.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/af_inet.c
net/ipv4/route.c