csum: Fix rare error cases in checksum computation.
authorBen Pfaff <blp@nicira.com>
Mon, 8 Mar 2010 21:33:13 +0000 (13:33 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 8 Mar 2010 21:33:13 +0000 (13:33 -0800)
commit4787d6d7df196ff7463517423dfbdfd41bdceffe
tree606adb1b02b7acdd60c0616dbfb10654ae6513b9
parentee402caec46c116a862b716cb4851ff5be371c9f
csum: Fix rare error cases in checksum computation.

Occasionally the checksum test on "make check" would fail.  This commit
fixes the problem, which was that the partial checksum may need more than
one reduction step to obtain a final checksum.  Now running checksum tests
in a continuous loop yields no failures.
lib/csum.c