net: Refactor path selection in __ip_route_output_key_hash
authorDavid Ahern <dsa@cumulusnetworks.com>
Mon, 5 Oct 2015 15:51:25 +0000 (08:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2015 11:27:44 +0000 (04:27 -0700)
commit3ce58d84358c7b477811b5100152fad848f936fc
treebe2bfdfeddad87ab8f9374e91063213982e24ffa
parentfee6d4c777a125e56de9370db3b2bf359bf958d6
net: Refactor path selection in __ip_route_output_key_hash

VRF device needs the same path selection following lookup to set source
address. Rather than duplicating code, move existing code into a
function that is exported to modules.

Code move only; no functional change.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_semantics.c
net/ipv4/route.c