]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0aab3c4def671baf21311fabe8ef0ecf3fffb22
treebe2bfdfeddad87ab8f9374e91063213982e24ffa
parente4e0e7ead76a79e2684428f1b672bd210a15f355
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