Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Thomas Graf and committed by
David S. Miller
db79a621 7af348be

+3
+3
drivers/net/vxlan.c
··· 1667 1667 { 1668 1668 struct vxlanhdr_gbp *gbp; 1669 1669 1670 + if (!md->gbp) 1671 + return; 1672 + 1670 1673 gbp = (struct vxlanhdr_gbp *)vxh; 1671 1674 vxh->vx_flags |= htonl(VXLAN_HF_GBP); 1672 1675