From 44c3328eb4216d7091297a40c844e8faa6e4264e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Thu, 5 Aug 2021 16:37:49 +0200 Subject: [PATCH] fff-network: add packet_steering option to enable RPS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Receive packet steering (RPS) is a linux feature to improve forwarding performance by distributing the forwarding of packets across multiple cpus. This is necessary for network devices which have less queues than cpu cores. OpenWrt allows to enable RPS easily by setting the global option 'packet_steering' in the network configuration. With earlier OpenWrt versions this option was enabled by default. However, the default value was changed with OpenWrt 21.02. Enable this option agian to improve forwarding performance on routers with multiple cpu cores. Signed-off-by: Fabian Bläse Reviewed-by: Johannes Kimmel --- src/packages/fff/fff-network/Makefile | 2 +- src/packages/fff/fff-network/files/etc/config/network | 3 +++ src/packages/fff/fff-network/files/usr/sbin/configurenetwork | 2 -- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/packages/fff/fff-network/Makefile b/src/packages/fff/fff-network/Makefile index e5dd825f..81b4ba16 100644 --- a/src/packages/fff/fff-network/Makefile +++ b/src/packages/fff/fff-network/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=fff-network -PKG_RELEASE:=47 +PKG_RELEASE:=48 include $(INCLUDE_DIR)/package.mk diff --git a/src/packages/fff/fff-network/files/etc/config/network b/src/packages/fff/fff-network/files/etc/config/network index 474e5c19..7c88a17b 100644 --- a/src/packages/fff/fff-network/files/etc/config/network +++ b/src/packages/fff/fff-network/files/etc/config/network @@ -1,3 +1,6 @@ +config globals 'globals' + option packet_steering '1' + config interface 'loopback' option ifname 'lo' option proto 'static' diff --git a/src/packages/fff/fff-network/files/usr/sbin/configurenetwork b/src/packages/fff/fff-network/files/usr/sbin/configurenetwork index a9721989..56d377ae 100755 --- a/src/packages/fff/fff-network/files/usr/sbin/configurenetwork +++ b/src/packages/fff/fff-network/files/usr/sbin/configurenetwork @@ -242,8 +242,6 @@ else addr=$(owipcalc "$prefix" add "::$(ipMacSuffix "$ROUTERMAC")") ip -6 addr add $addr dev br-client - uci -q del network.globals - uci -q set network.globals=globals uci -q set network.globals.ula_prefix=$prefix uci -q add_list network.client.ip6addr=$addr uci -q set network.client.proto=static