]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6c085f38f7bd3899ea3a8333e7c3b9c1db891cac
tree83e64245dd4d8fb845c174d6f82c8349bc775774
parentff012b184c0195c164c970bbf24af331f69552d0
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