]> git.karo-electronics.de Git - linux-beck.git/commit
vxlan: fix byte order of vxlan-gpe port number
authorLance Richardson <lrichard@redhat.com>
Mon, 16 Jan 2017 23:37:58 +0000 (18:37 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Feb 2017 08:47:10 +0000 (09:47 +0100)
commitd1c95f9ce102e77875ee8febc73d2a217dd020a0
treeafafebaf1ba418b455ba100db2620d91056966c3
parent1e7cbb413f63d8fa790c8dabc208ce2a02339c26
vxlan: fix byte order of vxlan-gpe port number

[ 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