aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2017-10-19 13:31:28 +0200
committerDavid S. Miller <davem@davemloft.net>2017-10-21 02:50:42 +0100
commit772e97b57a4aa00170ad505a40ffad31d987ce1d (patch)
tree50176418506f5d71ba0c3ebe47dbcf37b265f1d0 /net/ipv4/udp.c
parentMerge tag 'linux-can-fixes-for-4.14-20171019' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can (diff)
downloadlinux-dev-772e97b57a4aa00170ad505a40ffad31d987ce1d.tar.xz
linux-dev-772e97b57a4aa00170ad505a40ffad31d987ce1d.zip
geneve: Fix function matching VNI and tunnel ID on big-endian
On big-endian machines, functions converting between tunnel ID and VNI use the three LSBs of tunnel ID storage to map VNI. The comparison function eq_tun_id_and_vni(), on the other hand, attempted to map the VNI from the three MSBs. Fix it by using the same check implemented on LE, which maps VNI from the three LSBs of tunnel ID. Fixes: 2e0b26e10352 ("geneve: Optimize geneve device lookup.") Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: Jakub Sitnicki <jkbs@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp.c')
0 files changed, 0 insertions, 0 deletions