All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch "vxlan: fix byte order of vxlan-gpe port number" has been added to the 4.9-stable tree
@ 2017-02-01  8:12 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-02-01  8:12 UTC (permalink / raw)
  To: lrichard, davem, gregkh, jbenc; +Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    vxlan: fix byte order of vxlan-gpe port number

to the 4.9-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     vxlan-fix-byte-order-of-vxlan-gpe-port-number.patch
and it can be found in the queue-4.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From foo@baz Wed Feb  1 08:50:24 CET 2017
From: Lance Richardson <lrichard@redhat.com>
Date: Mon, 16 Jan 2017 18:37:58 -0500
Subject: vxlan: fix byte order of vxlan-gpe port number

From: Lance Richardson <lrichard@redhat.com>


[ Upstream commit d5ff72d9af73bc3cbaa3edb541333a851f8c7295 ]

vxlan->cfg.dst_port is in network byte order, so an htons()
is needed here. Also reduced comment length to stay closer
to 80 column width (still slightly over, however).

Fixes: e1e5314de08b ("vxlan: implement GPE")
Signed-off-by: Lance Richardson <lrichard@redhat.com>
Acked-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 drivers/net/vxlan.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -2887,7 +2887,7 @@ static int vxlan_dev_configure(struct ne
 	memcpy(&vxlan->cfg, conf, sizeof(*conf));
 	if (!vxlan->cfg.dst_port) {
 		if (conf->flags & VXLAN_F_GPE)
-			vxlan->cfg.dst_port = 4790; /* IANA assigned VXLAN-GPE port */
+			vxlan->cfg.dst_port = htons(4790); /* IANA VXLAN-GPE port */
 		else
 			vxlan->cfg.dst_port = default_port;
 	}


Patches currently in stable-queue which might be from lrichard@redhat.com are

queue-4.9/openvswitch-maintain-correct-checksum-state-in-conntrack-actions.patch
queue-4.9/vxlan-fix-byte-order-of-vxlan-gpe-port-number.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-02-01  8:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-01  8:12 Patch "vxlan: fix byte order of vxlan-gpe port number" has been added to the 4.9-stable tree gregkh

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.