Files
linux/arch/powerpc/include/asm
Paul Mackerras eae3f3ab7f powerpc/64: Fix checksum folding in csum_tcpudp_nofold and ip_fast_csum_nofold
commit b492f7e4e0 upstream.

These functions compute an IP checksum by computing a 64-bit sum and
folding it to 32 bits (the "nofold" in their names refers to folding
down to 16 bits).  However, doing (u32) (s + (s >> 32)) is not
sufficient to fold a 64-bit sum to 32 bits correctly.  The addition
can produce a carry out from bit 31, which needs to be added in to
the sum to produce the correct result.

To fix this, we copy the from64to32() function from lib/checksum.c
and use that.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-16 16:25:47 +01:00
..
2016-01-12 20:46:53 +02:00
2011-03-31 11:26:23 -03:00
2015-07-13 10:10:54 +10:00
2013-04-18 13:03:53 +10:00
2015-05-28 15:31:53 +02:00
2016-06-21 15:30:56 +10:00
2014-04-09 12:53:28 +10:00
2012-03-28 18:30:02 +01:00
2011-11-08 14:51:46 +11:00
2014-06-25 18:49:40 -05:00
2015-01-12 05:04:13 -08:00
2015-02-03 18:47:18 +01:00
2016-03-04 23:50:27 -06:00
2014-11-03 12:12:32 +11:00
2016-09-09 16:18:07 +10:00
2016-03-01 19:27:20 +11:00
2015-02-23 14:52:04 +11:00
2016-08-07 23:50:09 -04:00
2011-07-26 16:49:47 -07:00
2013-12-09 11:40:25 +11:00
2016-09-20 20:57:12 +10:00
2010-05-05 09:11:10 -04:00
2016-07-19 20:17:07 +10:00
2016-09-20 20:57:12 +10:00
2011-03-31 11:26:23 -03:00
2016-05-11 21:53:49 +10:00
2016-06-14 13:58:26 +10:00
2016-09-23 07:54:22 +10:00
2016-06-21 15:30:56 +10:00
2016-06-14 13:58:26 +10:00
2016-06-14 13:58:26 +10:00
2013-11-06 14:13:49 +11:00
2012-09-17 16:31:51 +10:00
2011-03-31 11:26:23 -03:00
2016-07-21 18:51:42 +10:00
2016-06-14 13:58:26 +10:00
2014-02-17 11:19:37 +11:00
2015-05-05 13:35:39 -06:00