vxlan: improve vxlan route lookup checks.
authorpravin shelar <pshelar@ovn.org>
Mon, 14 Nov 2016 04:43:55 +0000 (20:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Nov 2016 17:16:13 +0000 (12:16 -0500)
commit655c3de16540b8496273514658a6ad4cb31e01b4
tree49d8344592f2222fa9872197a96dac9813a1168a
parentc46b7897ad5ba49b215882fa6a1e4c28d21acf4f
vxlan: improve vxlan route lookup checks.

Move route sanity check to respective vxlan[4/6]_get_route functions.
This allows us to perform all sanity checks before caching the dst so
that we can avoid these checks on subsequent packets.
This give move accurate metadata information for packet from
fill_metadata_dst().

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