s390/checksum: provide csum_ipv6_magic()
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 11 Aug 2020 09:16:51 +0000 (11:16 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 26 Aug 2020 16:47:20 +0000 (18:47 +0200)
commitb064904c509decf9e038f29f903a2304851a913b
treee79bfab52949c0546b4b9bd087952268486e00e3
parentd012a7190fc1fd72ed48911e77ca97ba4521bccd
s390/checksum: provide csum_ipv6_magic()

This implementation needs only ~30% of the time to calculate the
checksum compared to the generic variant. In addition the compiler
also generates only ~30% of the instructions compared to the generic
variant (on z14, compiled with march=z196).

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/checksum.h