Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1425326

Re: [PATCH] arm64: Implement optimised IP checksum helpers

From Catalin Marinas <catalin.marinas@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH] arm64: Implement optimised IP checksum helpers
Date 2016-06-17 19:10 +0200
Message-ID <rL5rj-ST-1@gated-at.bofh.it> (permalink)
References <rxZMK-7Mu-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, May 12, 2016 at 03:26:48PM +0100, Robin Murphy wrote:
> 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>
> Signed-off-by: Robin Murphy <robin.murphy@arm.com>

Queued for 4.8. Thanks.

-- 
Catalin

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] arm64: Implement optimised IP checksum helpers Catalin Marinas <catalin.marinas@arm.com> - 2016-06-17 19:10 +0200

csiph-web