ipvs: Pull out crosses_local_route_boundary logic
authorAlex Gartrell <agartrell@fb.com>
Tue, 9 Sep 2014 23:40:25 +0000 (16:40 -0700)
committerSimon Horman <horms@verge.net.au>
Tue, 16 Sep 2014 00:03:36 +0000 (09:03 +0900)
commit4a4739d56b006c4b34dfba03c356056e110521ca
tree83e64245dd4d8fb845c174d6f82c8349bc775774
parent391f503d69779867f05e9296ae523e9002c2d7ee
ipvs: Pull out crosses_local_route_boundary logic

This logic is repeated in both out_rt functions so it was redundant.
Additionally, we'll need to be able to do checks to route v4 to v6 and vice
versa in order to deal with heterogeneous pools.

This patch also updates the callsites to add an additional parameter to the
out route functions.

Signed-off-by: Alex Gartrell <agartrell@fb.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_xmit.c