]> 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)
commitb7c2e4e3f9b72bafb72503271751161a7bd1759c
treeb67532a74343d42bcf8784b8e32d7cf6d69313db
parent02a0ec4a60f530c03c1f41e0c5b01061c0dc1fd5
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