[IPV4]: Replace __in_dev_get with __in_dev_get_rcu/rtnl
Herbert Xu authored

The following patch renames __in_dev_get() to __in_dev_get_rtnl() and
introduces __in_dev_get_rcu() to cover the second case.

1) RCU with refcnt should use in_dev_get().
2) RCU without refcnt should use __in_dev_get_rcu().
3) All others must hold RTNL and use __in_dev_get_rtnl().

There is one exception in net/ipv4/route.c which is in fact a pre-existing
race condition.  I've marked it as such so that we remember to fix it.

This patch is based on suggestions and prior work by Suzanne Wood and
Paul McKenney.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
e5ed6399
Name Last commit Last update
..
802 [TR]: Set correct frame type for SNAP packets
8021q [8021Q]: Add endian annotations.
appletalk [APPLETALK]: Fix broadcast bug.
atm [IPV4]: Replace __in_dev_get with __in_dev_get_rcu/rtnl
ax25 [AX.25]: Reformat ax25_proto_ops initialization
bluetooth [Bluetooth] Prevent RFCOMM connections through the RAW socket
bridge [BRIDGE]: TSO fix in br_dev_queue_push_xmit
core [IPV4]: Replace __in_dev_get with __in_dev_get_rcu/rtnl
dccp [INET]: speedup inet (tcp/dccp) lookups
decnet [PATCH] timer initialization cleanup: DEFINE_TIMER
econet [IPV4]: Replace __in_dev_get with __in_dev_get_rcu/rtnl
ethernet [NET]: Fix reversed logic in eth_type_trans().
ieee80211 [PATCH] proc_mkdir() should be used to create procfs directories
ipv4 [IPV4]: Replace __in_dev_get with __in_dev_get_rcu/rtnl
ipv6 [IPV4]: Replace __in_dev_get with __in_dev_get_rcu/rtnl
ipx [NET]: Fix sparse warnings
irda [IPV4]: Replace __in_dev_get with __in_dev_get_rcu/rtnl
key [IPSEC]: Add XFRM_STATE_NOPMTUDISC flag
lapb [NET]: Kill skb->list
llc [LLC]: fix llc_ui_recvmsg, making it behave like tcp_recvmsg
netfilter [NET]: Fix packet timestamping.
netlink [NETLINK]: Don't prevent creating sockets when no kernel socket is registered
netrom [NETROM]: Introduct stuct nr_private
packet [NET]: Fix packet timestamping.
rose [ROSE]: fix typo (regeistration)
rxrpc
sched
sctp
sunrpc
unix
wanrouter
x25
xfrm
Kconfig
Makefile
TUNABLE
compat.c
nonet.c
socket.c
sysctl_net.c