[MIPS] Fix 64-bit IP checksum code
commite5f3a8a2e3ebb25e8ee07c1584154ad66de4e150
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Sat, 20 Sep 2008 15:20:04 +0000 (20 17:20 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 20 Sep 2008 16:19:44 +0000 (20 18:19 +0200)
tree95bf1f27e89116ed21777dfa55d3fe11ee28be7f
parentf9196fc727805b8b5f223fbc2059cd326d2ce8b2
[MIPS] Fix 64-bit IP checksum code

Use unsigned loads to avoid possible misscalculation of IP checksums.  This
bug was instruced in f761106cd728bcf65b7fe161b10221ee00cf7132 (lmo) /
ed99e2bc1dc5dc54eb5a019f4975562dbef20103 (kernel.org).

[Original fix by Atsushi.  Improved instruction scheduling and fix for
unaligned unsigned load by me -- Ralf]

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/lib/csum_partial.S