]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jan 2017 20:23:43 +0000 (15:23 -0500)
commit93dc1818302429e57b6a48d25ea2860a34e50c9a
treef97b9016cf8948b40f9027d238d71ec71c5c7fdd
parent7a17b6e4c1aeda1ef9dda945f5ca66a9560b759d
vxlan: fix byte order of vxlan-gpe port number

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: 8a354e4ae1eb ("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>
drivers/net/vxlan.c