]> bbs.cooldavid.org Git - net-next-2.6.git/commit
net: avoid two atomic ops in ip_rcv_options()
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 7 Jun 2010 03:54:46 +0000 (03:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jun 2010 04:49:51 +0000 (21:49 -0700)
commit6e8b11b43b0c2e901734e2cdd70c6e325a90c4ef
tree867d740b9969f749890dabaa252f78232af467b3
parented7865a47d4759e85bbd7bed44bee411d868eaad
net: avoid two atomic ops in ip_rcv_options()

in_dev_get() -> __in_dev_get_rcu() in a rcu protected function.

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