net: vxlan: lwt: Use source ip address during route lookup.
authorpravin shelar <pshelar@ovn.org>
Sat, 6 Aug 2016 00:45:36 +0000 (17:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Aug 2016 21:16:23 +0000 (14:16 -0700)
commit272d96a5ab10662691b4ec90c4a66fdbf30ea7ba
tree4ca4c149394c5ee71201c7843345be46560030db
parentda1b41950e6ad9d1ed1de1ebca8be4be317f8b48
net: vxlan: lwt: Use source ip address during route lookup.

LWT user can specify destination as well as source ip address
for given tunnel endpoint. But vxlan is ignoring given source
ip address. Following patch uses both ip address to route the
tunnel packet. This consistent with other LWT implementations,
like GENEVE and GRE.

Fixes: ee122c79d42 ("vxlan: Flow based tunneling").
Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c