ipvs: fix ARP resolving for direct routing mode
authorJulian Anastasov <ja@ssi.bg>
Mon, 8 Oct 2012 11:41:20 +0000 (11:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2012 21:42:36 +0000 (17:42 -0400)
commitad4d3ef8b7eb527cca478dc08c02c10936e64115
tree530706cd517a8810cb0ccea44ebccc6c19d875bd
parentc92b96553a80c1dbe2ebe128bbe37c8f98f148bf
ipvs: fix ARP resolving for direct routing mode

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>
net/netfilter/ipvs/ip_vs_xmit.c