aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/xfrm4_input.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-05-10 11:33:06 +0000
committerDavid S. Miller <davem@davemloft.net>2010-05-17 17:18:51 -0700
commit4a94445c9a5cf5461fb41d80040033b9a8e2a85a (patch)
tree7891df11e4df4dd2c5149ef4fdc7d1301e7fca36 /net/ipv4/xfrm4_input.c
parent407eadd996dc62a827db85f1d0c286a98fd5d336 (diff)
downloadkernel_goldelico_gta04-4a94445c9a5cf5461fb41d80040033b9a8e2a85a.zip
kernel_goldelico_gta04-4a94445c9a5cf5461fb41d80040033b9a8e2a85a.tar.gz
kernel_goldelico_gta04-4a94445c9a5cf5461fb41d80040033b9a8e2a85a.tar.bz2
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>
Diffstat (limited to 'net/ipv4/xfrm4_input.c')
-rw-r--r--net/ipv4/xfrm4_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/xfrm4_input.c b/net/ipv4/xfrm4_input.c
index abcd7ed..ad8fbb8 100644
--- a/net/ipv4/xfrm4_input.c
+++ b/net/ipv4/xfrm4_input.c
@@ -27,8 +27,8 @@ static inline int xfrm4_rcv_encap_finish(struct sk_buff *skb)
if (skb_dst(skb) == NULL) {
const struct iphdr *iph = ip_hdr(skb);
- if (ip_route_input(skb, iph->daddr, iph->saddr, iph->tos,
- skb->dev))
+ if (ip_route_input_noref(skb, iph->daddr, iph->saddr,
+ iph->tos, skb->dev))
goto drop;
}
return dst_input(skb);