summaryrefslogtreecommitdiff
path: root/arch/frv/lib
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2016-05-31 18:04:40 +0100
committerSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>2016-10-26 11:44:42 -0600
commit778e921c5e2d182477d48d2bf2b98a8cd73d59cc (patch)
tree4ee13b0076e5216f33fb860e775620a14ff4454c /arch/frv/lib
parent46aa49c1188a77f52dc4969f82292c176d8f399b (diff)
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. CRs-Fixed: 1082349 Change-Id: I0d8e9bdc15d052458e366cef13a6d2d8c7420ff2 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> Git-commit: 0e455d8e80aa22d7ed42c9f5e4e3a75c558aa543 Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Diffstat (limited to 'arch/frv/lib')
0 files changed, 0 insertions, 0 deletions