ipvs: fix ARP resolving for direct routing mode
authorJulian Anastasov <ja@ssi.bg>
Mon, 8 Oct 2012 11:41:20 +0000 (11:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Oct 2012 17:56:17 +0000 (10:56 -0700)
commitc4e6940cc12c1cac1e8664a2a46ef01f0783c69c
tree67289f8dcbca55e0c07879bfeadb26ffc450503d
parent1f6cc51c46ed910f8f68d4f3359ad3bca7ee7bc2
ipvs: fix ARP resolving for direct routing mode

[ Upstream commit ad4d3ef8b7eb527cca478dc08c02c10936e64115 ]

After the change "Make neigh lookups directly in output packet path"
(commit a263b30936) IPVS can not reach the real server for DR mode
because we resolve the destination address from IP header, not from
route neighbour. Use the new FLOWI_FLAG_KNOWN_NH flag to request
output routes with known nexthop, so that it has preference
on resolving.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/ipvs/ip_vs_xmit.c