]> 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)
commite23a65791018d61f77664c4c3ad4f943177adc6f
tree83e64245dd4d8fb845c174d6f82c8349bc775774
parent14e2cdfefca72d7d679bf433403a23166f2b7313
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