net: ipv4: Convert inet_rtm_getroute to rcu versions of route lookup
authorDavid Ahern <dsahern@gmail.com>
Thu, 25 May 2017 17:42:36 +0000 (10:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 18:12:50 +0000 (14:12 -0400)
commit3765d35ed8b9363cbf72ffe2282002d717a40843
tree057c35de51c52a7984e5610b04eb6af561e453f9
parentd3166e0c959311881eaf7ed2e5130822d4337905
net: ipv4: Convert inet_rtm_getroute to rcu versions of route lookup

Convert inet_rtm_getroute to use ip_route_input_rcu and
ip_route_output_key_hash_rcu passing the fib_result arg to both.
The rcu lock is held through the creation of the response, so the
rtable/dst does not need to be attached to the skb and is passed
to rt_fill_info directly.

In converting from ip_route_output_key to ip_route_output_key_hash_rcu
the xfrm_lookup_route in ip_route_output_flow is dropped since
flowi4_proto is not set for a route get request.

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>
net/ipv4/route.c