vxlan: Only set has-GBP bit in header if any other bits would be set This allows for a VXLAN-GBP socket to talk to a Linux VXLAN socket by not setting any of the bits.
Signed-off-by: Thomas Graf <tg...@suug.ch> Signed-off-by: David S. Miller <da...@davemloft.net> Upstream: db79a621835e ("vxlan: Only set has-GBP bit in header if any other bits would be set") Signed-off-by: Thomas Graf <tg...@noironetworks.com> --- datapath/linux/compat/vxlan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/datapath/linux/compat/vxlan.c b/datapath/linux/compat/vxlan.c index 9d70611..84a039c 100644 --- a/datapath/linux/compat/vxlan.c +++ b/datapath/linux/compat/vxlan.c @@ -214,6 +214,9 @@ static void vxlan_build_gbp_hdr(struct vxlanhdr *vxh, u32 vxflags, { struct vxlanhdr_gbp *gbp; + if (!md->gbp) + return; + gbp = (struct vxlanhdr_gbp *)vxh; vxh->vx_flags |= htonl(VXLAN_HF_GBP); -- 1.9.3 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev