openvswitch: Only set TUNNEL_VXLAN_OPT if VXLAN-GBP metadata is set
authorThomas Graf <tgraf@suug.ch>
Mon, 9 Feb 2015 15:56:37 +0000 (16:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Feb 2015 22:25:52 +0000 (14:25 -0800)
commitfd3137cd33ae5590c45c81e9a46fe53b6ab5f66e
tree2625c5401a659d30f3c9c65da9674a8430212d7b
parent60cd0854de687103125e2aa62b5f6ab3ee0213ea
openvswitch: Only set TUNNEL_VXLAN_OPT if VXLAN-GBP metadata is set

This avoids setting TUNNEL_VXLAN_OPT for VXLAN frames which don't
have any GBP metadata set. It is not invalid to set it but unnecessary.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/vport-vxlan.c