All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] vxlan: Only set has-GBP bit in header if any other bits would be set
@ 2015-02-04 16:00 Thomas Graf
  2015-02-05  8:38 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Graf @ 2015-02-04 16:00 UTC (permalink / raw)
  To: davem; +Cc: netdev

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>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] vxlan: Only set has-GBP bit in header if any other bits would be set
  2015-02-04 16:00 [PATCH net-next] vxlan: Only set has-GBP bit in header if any other bits would be set Thomas Graf
@ 2015-02-05  8:38 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-02-05  8:38 UTC (permalink / raw)
  To: tgraf; +Cc: davem, netdev

From: Thomas Graf <tgraf@suug.ch>
Date: Wed,  4 Feb 2015 17:00:04 +0100

> 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>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-05  8:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-04 16:00 [PATCH net-next] vxlan: Only set has-GBP bit in header if any other bits would be set Thomas Graf
2015-02-05  8:38 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.