ksmbd: select ASN1 explicitly to reduce dependencies

ksmbd requires ASN.1 grammar compiler so it depends on CONFIG_ASN1. It
should select kmod-asn1-decoder for above reason.

Due to some problems with kmod-asn1-decoder in the past ksmbd was
selecting kmod-nf-nathelper-extra instead. That was affecting network
performance in kernel as each loaded conntrack module adds some overhead
to packets processing.

Fix this unwanted side effect by depending on kmod-asn1-decoder
directly.

Link: http://lists.openwrt.org/pipermail/openwrt-devel/2023-January/040298.html
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
This commit is contained in:
Rafał Miłecki 2023-01-25 12:34:15 +01:00 committed by Rafał Miłecki
parent de41f9a0d9
commit a7a3615681
1 changed files with 3 additions and 3 deletions

View File

@ -24,6 +24,7 @@ define KernelPackage/fs-ksmbd
URL:=https://github.com/cifsd-team/cifsd
FILES:=$(PKG_BUILD_DIR)/ksmbd.ko
DEPENDS:= \
+kmod-asn1-decoder \
+kmod-nls-base \
+kmod-nls-utf8 \
+kmod-crypto-md4 \
@ -37,11 +38,10 @@ define KernelPackage/fs-ksmbd
+kmod-crypto-aead \
+kmod-crypto-ccm \
+kmod-crypto-gcm \
+kmod-fs-nfsd \
+kmod-nf-nathelper-extra
+kmod-fs-nfsd
endef
# The last two DEPENDS are hacks in order to get CONFIG_ASN1 and CONFIG_OID_REGISTRY
# The last DEPENDS entry is a hack in order to get CONFIG_OID_REGISTRY
# which it seems can't be selected independently. Some bug in either base or upstream.
define KernelPackage/fs-ksmbd/description