powerpc: Add 64bit csum_and_copy_to_user
authorAnton Blanchard <anton@samba.org>
Mon, 2 Aug 2010 20:11:36 +0000 (20:11 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 2 Sep 2010 04:07:30 +0000 (14:07 +1000)
commit8c77391475bc3284a380fc46aaf0bcf26bde3ae6
tree0948ebdf02ce03948faf8dc41af8414f84652239
parentfdd374b62ca4df144c0138359dcffa83df7a0ea8
powerpc: Add 64bit csum_and_copy_to_user

This adds the equivalent of csum_and_copy_from_user for the receive side so we
can copy and checksum in one pass. It is modelled on the generic checksum
routine.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/checksum.h
arch/powerpc/lib/checksum_wrappers_64.c