]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdb32c9150f19a750002dc67f08713e8de112ea38
tree78f17093ffdbf4e2cd788033f113888c472f0d7b
parentd3c9dc69b4b311cdaced0646759395a77ca86244
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