vxlan: treat vni in metadata based tunnels consistently
authorJiri Benc <jbenc@redhat.com>
Tue, 16 Feb 2016 20:59:03 +0000 (21:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Feb 2016 04:52:12 +0000 (23:52 -0500)
commitb9167b2e775999d267874b5a1a3a79020f54753a
tree7208c2dd2669bfe11a132652c27ac8406293cbdf
parent288b01c8c46eda01cd3921c6e3aca6293e57cee8
vxlan: treat vni in metadata based tunnels consistently

For metadata based tunnels, VNI is ignored when doing vxlan device lookups
(because such tunnel receives all VNIs). However, this was not honored by
vxlan_xmit_one when doing encapsulation bypass. Move the check for metadata
based tunnel to the common place where it belongs.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c