mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
kernel: build neon-asm version of ghash module
This alone improves AES-GCM performance by up to 50% on ipq40xx. This is enabled for targets that support neon and set CONFIG_ARM_CRYPTO: imx6, ipq40xx, and mvebu. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
This commit is contained in:
parent
13b8404b1e
commit
285df63efc
@ -266,12 +266,23 @@ $(eval $(call KernelPackage,crypto-gf128))
|
|||||||
define KernelPackage/crypto-ghash
|
define KernelPackage/crypto-ghash
|
||||||
TITLE:=GHASH digest CryptoAPI module
|
TITLE:=GHASH digest CryptoAPI module
|
||||||
DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-hash
|
DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-hash
|
||||||
KCONFIG:=CONFIG_CRYPTO_GHASH
|
KCONFIG:= \
|
||||||
|
CONFIG_CRYPTO_GHASH \
|
||||||
|
CONFIG_CRYPTO_GHASH_ARM_CE
|
||||||
FILES:=$(LINUX_DIR)/crypto/ghash-generic.ko
|
FILES:=$(LINUX_DIR)/crypto/ghash-generic.ko
|
||||||
AUTOLOAD:=$(call AutoLoad,09,ghash-generic)
|
AUTOLOAD:=$(call AutoLoad,09,ghash-generic)
|
||||||
$(call AddDepends/crypto)
|
$(call AddDepends/crypto)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define KernelPackage/crypto-ghash/arm-ce
|
||||||
|
FILES+= $(LINUX_DIR)/arch/arm/crypto/ghash-arm-ce.ko
|
||||||
|
AUTOLOAD+=$(call AutoLoad,09,ghash-arm-ce)
|
||||||
|
endef
|
||||||
|
|
||||||
|
KernelPackage/crypto-ghash/imx6=$(KernelPackage/crypto-ghash/arm-ce)
|
||||||
|
KernelPackage/crypto-ghash/ipq40xx=$(KernelPackage/crypto-ghash/arm-ce)
|
||||||
|
KernelPackage/crypto-ghash/mvebu=$(KernelPackage/crypto-ghash/arm-ce)
|
||||||
|
|
||||||
$(eval $(call KernelPackage,crypto-ghash))
|
$(eval $(call KernelPackage,crypto-ghash))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user