]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: tun_id is 64bit, not 32bit
authorJiri Benc <jbenc@redhat.com>
Thu, 18 Feb 2016 18:19:29 +0000 (19:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Feb 2016 18:55:24 +0000 (13:55 -0500)
commitf3cce4f5904a8def34bff77df68d7343619619d0
tree5fba2742a7df7451a1127c38b475f347623b6104
parent5d6bcead7e0e669bbf175d24af2e618c841ce059
vxlan: tun_id is 64bit, not 32bit

The tun_id field in struct ip_tunnel_key is __be64, not __be32. We need to
convert the vni to tun_id correctly.

Fixes: f763ecd0e6eb ("vxlan: keep flags and vni in network byte order")
Reported-by: Paolo Abeni <pabeni@redhat.com>
Tested-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/net/vxlan.h