]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: ipv4: refactor ip_route_input_noref
authorDavid Ahern <dsahern@gmail.com>
Thu, 25 May 2017 17:42:34 +0000 (10:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 18:12:49 +0000 (14:12 -0400)
commit5510cdf7be042a1943222e19912f13a396c0b914
tree4ad5b4a3628ef631a26d740eda811e74b830931f
parent3abd1ade6765e8edcccad6a9e1039cc709e65dde
net: ipv4: refactor ip_route_input_noref

A later patch wants access to the fib result on an input route lookup
with the rcu lock held. Refactor ip_route_input_noref pushing the logic
between rcu_read_lock ... rcu_read_unlock into a new helper that takes
the fib_result as an input arg.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/route.h
net/ipv4/route.c