mirror of
https://github.com/openwrt/packages.git
synced 2025-12-10 12:41:22 +00:00
jool: add hotplug script to disable fraglist GRO
The kernel module translation code cannot deal with it Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
@@ -102,7 +102,7 @@ endef
|
||||
define Package/jool-tools-netfilter
|
||||
$(call Package/jool/Default)
|
||||
TITLE:=Jool userspace control programs
|
||||
DEPENDS:=+libnl +libnl-genl +kmod-jool-netfilter
|
||||
DEPENDS:=+libnl +libnl-genl +kmod-jool-netfilter +ethtool
|
||||
endef
|
||||
|
||||
define Package/jool-tools-netfilter/description
|
||||
@@ -135,6 +135,9 @@ define Package/jool-tools-netfilter/install
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/jool.init $(1)/etc/init.d/jool
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/hotplug.d/net
|
||||
$(INSTALL_BIN) ./files/jool-disable-fraglist-gro.sh $(1)/etc/hotplug.d/net/90-jool-disable-fraglist-gro.sh
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/jool
|
||||
$(INSTALL_CONF) ./files/jool-nat64.conf.json $(1)/etc/jool/jool-nat64.conf.json
|
||||
$(INSTALL_CONF) ./files/jool-siit.conf.json $(1)/etc/jool/jool-siit.conf.json
|
||||
|
||||
6
net/jool/files/jool-disable-fraglist-gro.sh
Normal file
6
net/jool/files/jool-disable-fraglist-gro.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
if [ "$ACTION" = add ]; then
|
||||
for dev in `ls /sys/class/net`; do
|
||||
[ -d "/sys/class/net/$dev" ] || continue
|
||||
ethtool -K $dev rx-gro-list off 2>/dev/null
|
||||
done
|
||||
fi
|
||||
Reference in New Issue
Block a user