]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Fix input route performance regression.
authorDavid S. Miller <davem@davemloft.net>
Thu, 26 Jul 2012 11:14:38 +0000 (11:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jul 2012 22:50:39 +0000 (15:50 -0700)
commita4f814a86c4e203fcd44e9c1daea40dac525bac8
treeb67532a74343d42bcf8784b8e32d7cf6d69313db
parent86dce2490db48245a75af5de6cd31f8a36c327c9
ipv4: Fix input route performance regression.

With the routing cache removal we lost the "noref" code paths on
input, and this can kill some routing workloads.

Reinstate the noref path when we hit a cached route in the FIB
nexthops.

With help from Eric Dumazet.

Reported-by: Alexander Duyck <alexander.duyck@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/route.h
net/ipv4/arp.c
net/ipv4/fib_semantics.c
net/ipv4/ip_fragment.c
net/ipv4/ip_input.c
net/ipv4/route.c
net/ipv4/xfrm4_input.c