]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d6e6752e2b4aab75005100fd453523d324d6d86
tree7208c2dd2669bfe11a132652c27ac8406293cbdf
parent93845b5cd25de190cfc62f801a1c15ddd006d094
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