[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <776a985ae0db9e2c24aefe6d7d6cef1794eb685a.1423065534.git.tgraf@suug.ch>
Date: Wed, 4 Feb 2015 17:00:04 +0100
From: Thomas Graf <tgraf@...g.ch>
To: davem@...emlof.net
Cc: netdev@...r.kernel.org
Subject: [PATCH net-next] 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@...g.ch>
---
drivers/net/vxlan.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 31bac2a..fd68dc2 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -1681,6 +1681,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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists