apm821xx: switch out kernel's CRC32 method
authorChristian Lamparter <chunkeey@gmail.com>
Sat, 22 Jun 2019 14:17:58 +0000 (16:17 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Mon, 24 Jun 2019 18:22:24 +0000 (20:22 +0200)
This patch replaces the OpenWrt' favoured
CRC32 Sarwate algorithm with the kernel
recommended SLICE8 CRC32 version.

This change alone lifted btrfs writes from 40 MiB/s
to 54 MiB/s on my My Book Live (SLICE4 managed 48 MiB/s).

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/apm821xx/config-4.14
target/linux/apm821xx/config-4.19

index a70c95753da5ca706f7a08edbd0075e74feb6a11..ccc59b294d6d14aee75b78791463ce3afdb23810 100644 (file)
@@ -56,6 +56,8 @@ CONFIG_CMDLINE_BOOL=y
 CONFIG_CONSISTENT_SIZE=0x00200000
 CONFIG_CPU_BIG_ENDIAN=y
 CONFIG_CRC16=y
+# CONFIG_CRC32_SARWATE is not set
+CONFIG_CRC32_SLICEBY8=y
 CONFIG_CRYPTO_ACOMP2=y
 CONFIG_CRYPTO_AEAD=y
 CONFIG_CRYPTO_AEAD2=y
index 3f57ec6b8337731c0ac06957c56c6145d1e62c54..358eb3c716b07b125bd86b505504ce5e8bba494f 100644 (file)
@@ -60,6 +60,8 @@ CONFIG_CONSISTENT_SIZE=0x00200000
 CONFIG_CONSOLE_LOGLEVEL_QUIET=4
 CONFIG_CPU_BIG_ENDIAN=y
 CONFIG_CRC16=y
+# CONFIG_CRC32_SARWATE is not set
+CONFIG_CRC32_SLICEBY8=y
 CONFIG_CRYPTO_ACOMP2=y
 CONFIG_CRYPTO_AEAD=y
 CONFIG_CRYPTO_AEAD2=y