From: Alexander Duyck Date: Tue, 25 Nov 2014 04:08:32 +0000 (-0800) Subject: ip6_udp_tunnel: Fix checksum calculation X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~65^2~9^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3750817a9034bd8cbb5ba583cd544e7cf14c7d8;p=pandora-kernel.git ip6_udp_tunnel: Fix checksum calculation The UDP checksum calculation for VXLAN tunnels is currently using the socket addresses instead of the actual packet source and destination addresses. As a result the checksum calculated is incorrect in some cases. Also uh->check was being set twice, first it was set to 0, and then it is set again in udp6_set_csum. This change removes the redundant assignment to 0. Fixes: acbf74a7 ("vxlan: Refactor vxlan driver to make use of the common UDP tunnel functions.") Cc: Andy Zhou Signed-off-by: Alexander Duyck Signed-off-by: David S. Miller --- Reading git-diff-tree failed