diff options
author | Bibo Mao <maobibo@loongson.cn> | 2023-05-01 12:19:43 +0300 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2023-05-01 12:19:43 +0300 |
commit | 69e3a6aa6be21de6aaf38130fad97ecde34a193c (patch) | |
tree | 6fba93ff034b3a33f1f09989bf702e6f54b2d8a7 /arch/loongarch/lib/Makefile | |
parent | 8941e93ca5906fcca87dc74255b58054ec4d7868 (diff) | |
download | linux-69e3a6aa6be21de6aaf38130fad97ecde34a193c.tar.xz |
LoongArch: Add checksum optimization for 64-bit system
LoongArch platform is 64-bit system, which supports 8-bytes memory
accessing, but generic checksum functions use 4-byte memory access.
So add 8-bytes memory access optimization for checksum functions on
LoongArch. And the code comes from arm64 system.
When network hw checksum is disabled, iperf performance improves about
10% with this patch.
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/lib/Makefile')
-rw-r--r-- | arch/loongarch/lib/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/lib/Makefile b/arch/loongarch/lib/Makefile index 40bde632900f..271ed45f51bb 100644 --- a/arch/loongarch/lib/Makefile +++ b/arch/loongarch/lib/Makefile @@ -4,4 +4,4 @@ # lib-y += delay.o memset.o memcpy.o memmove.o \ - clear_user.o copy_user.o dump_tlb.o unaligned.o + clear_user.o copy_user.o csum.o dump_tlb.o unaligned.o |