diff options
author | Robin Murphy <robin.murphy@arm.com> | 2016-05-31 18:04:40 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2016-06-21 15:09:11 +0100 |
commit | 0e455d8e80aa22d7ed42c9f5e4e3a75c558aa543 (patch) | |
tree | 6f5e84f4eeb3acc32fd836899e68bb6b41f03731 /arch/arm64/include/asm/Kbuild | |
parent | 33688abb2802ff3a230bd2441f765477b94cc89e (diff) | |
download | op-kernel-dev-0e455d8e80aa22d7ed42c9f5e4e3a75c558aa543.zip op-kernel-dev-0e455d8e80aa22d7ed42c9f5e4e3a75c558aa543.tar.gz |
arm64: Implement optimised IP checksum helpers
AArch64 is capable of 128-bit memory accesses without alignment
restrictions, which makes it both possible and highly practical to slurp
up a typical 20-byte IP header in just 2 loads. Implement our own
version of ip_fast_checksum() to take advantage of that, resulting in
considerably fewer instructions and memory accesses than the generic
version. We can also get more optimal code generation for csum_fold() by
defining it a slightly different way round from the generic version, so
throw that into the mix too.
Suggested-by: Luke Starrett <luke.starrett@broadcom.com>
Acked-by: Luke Starrett <luke.starrett@broadcom.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/Kbuild')
-rw-r--r-- | arch/arm64/include/asm/Kbuild | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/Kbuild b/arch/arm64/include/asm/Kbuild index cff532a..f43d2c4 100644 --- a/arch/arm64/include/asm/Kbuild +++ b/arch/arm64/include/asm/Kbuild @@ -1,6 +1,5 @@ generic-y += bug.h generic-y += bugs.h -generic-y += checksum.h generic-y += clkdev.h generic-y += cputime.h generic-y += current.h |