diff options
author | Robin Murphy <robin.murphy@arm.com> | 2016-05-31 20:04:40 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2016-06-21 17:09:11 +0300 |
commit | 0e455d8e80aa22d7ed42c9f5e4e3a75c558aa543 (patch) | |
tree | 6f5e84f4eeb3acc32fd836899e68bb6b41f03731 /arch/arm64/include/asm/hardirq.h | |
parent | 33688abb2802ff3a230bd2441f765477b94cc89e (diff) | |
download | linux-0e455d8e80aa22d7ed42c9f5e4e3a75c558aa543.tar.xz |
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/hardirq.h')
0 files changed, 0 insertions, 0 deletions