ipip: convert hash tables locking to RCU
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 23 Oct 2009 05:42:02 +0000 (05:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Oct 2009 13:07:57 +0000 (06:07 -0700)
commit8f95dd63a2ab6fe7243c4f0bd2c3266e3a5525ab
treea9bc2c34c612d8fc2fa70e107e87283b53ecf4ed
parent91cc3bb0b04ffef49bb044e06b221ea5de053e91
ipip: convert hash tables locking to RCU

IPIP tunnels use one rwlock to protect their hash tables.

This locking scheme can be converted to RCU for free, since netdevice
already must wait for a RCU grace period at dismantle time.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipip.c