diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2024-02-03 13:45:22 +0300 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2024-02-16 16:30:17 +0300 |
commit | cb2a1dd589a0ce97429bf2beeb560e5b030c2ccc (patch) | |
tree | cb2ffaa05e7442ba1f4dfb305dcdb7bfef87d463 /arch/s390/include/asm/checksum.h | |
parent | 3a74f44de2c901e1536d227d29257cae1a6ed18f (diff) | |
download | linux-cb2a1dd589a0ce97429bf2beeb560e5b030c2ccc.tar.xz |
s390/checksum: provide vector register variant of csum_partial()
Provide a faster variant of csum_partial() which uses vector registers
instead of the cksm instruction.
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/checksum.h')
-rw-r--r-- | arch/s390/include/asm/checksum.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/arch/s390/include/asm/checksum.h b/arch/s390/include/asm/checksum.h index 414264b3ed6c..00095cc20afa 100644 --- a/arch/s390/include/asm/checksum.h +++ b/arch/s390/include/asm/checksum.h @@ -30,22 +30,7 @@ static inline __wsum cksm(const void *buff, int len, __wsum sum) return sum; } -/* - * Computes the checksum of a memory block at buff, length len, - * and adds in "sum" (32-bit). - * - * Returns a 32-bit number suitable for feeding into itself - * or csum_tcpudp_magic. - * - * This function must be called with even lengths, except - * for the last fragment, which may be odd. - * - * It's best to have buff aligned on a 32-bit boundary. - */ -static inline __wsum csum_partial(const void *buff, int len, __wsum sum) -{ - return cksm(buff, len, sum); -} +__wsum csum_partial(const void *buff, int len, __wsum sum); /* * Fold a partial checksum without adding pseudo headers. |