From 3ffec2d091c9e1e69997688c853355b530af65d1 Mon Sep 17 00:00:00 2001 From: Sean Khan Date: Thu, 25 Apr 2024 05:17:18 -0400 Subject: [PATCH] nss-ecm: workaround insmod issue switch to using modprobe vs. insmod as it allows more versatility in dependency loading. Signed-off-by: Sean Khan --- qca-nss-ecm/Makefile | 2 +- qca-nss-ecm/files/qca-nss-ecm.init | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/qca-nss-ecm/Makefile b/qca-nss-ecm/Makefile index a9b135f..120f52b 100644 --- a/qca-nss-ecm/Makefile +++ b/qca-nss-ecm/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=qca-nss-ecm -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE_URL:=https://git.codelinaro.org/clo/qsdk/oss/lklm/qca-nss-ecm.git PKG_SOURCE_PROTO:=git diff --git a/qca-nss-ecm/files/qca-nss-ecm.init b/qca-nss-ecm/files/qca-nss-ecm.init index e49c36b..e57c573 100644 --- a/qca-nss-ecm/files/qca-nss-ecm.init +++ b/qca-nss-ecm/files/qca-nss-ecm.init @@ -69,7 +69,9 @@ load_ecm() { local get_front_end_mode get_front_end_mode="$(get_front_end_mode)" modinfo ecm | awk '/depends/{gsub(",","\n",$NF);print $NF}' | xargs -r -n 1 modprobe - insmod ecm front_end_selection="$get_front_end_mode" + touch /etc/modules.conf + grep -q "options ecm" /etc/modules.conf || echo "options ecm front_end_selection=$get_front_end_mode" >> /etc/modules.conf + modprobe ecm echo 1 > /sys/kernel/debug/ecm/ecm_classifier_default/accel_delay_pkts }