net: Use ip_route_input_noref() in input path
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 10 May 2010 11:33:06 +0000 (11:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2010 00:18:51 +0000 (17:18 -0700)
commit4a94445c9a5cf5461fb41d80040033b9a8e2a85a
tree7891df11e4df4dd2c5149ef4fdc7d1301e7fca36
parent407eadd996dc62a827db85f1d0c286a98fd5d336
net: Use ip_route_input_noref() in input path

Use ip_route_input_noref() in ip fast path, to avoid two atomic ops per
incoming packet.

Note: loopback is excluded from this optimization in ip_rcv_finish()

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