forked from freifunk-franken/firmware
fff-network: add packet_steering option to enable RPS
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 <fabian@blaese.de> Reviewed-by: Johannes Kimmel <fff@bareminimum.eu>
This commit is contained in:
parent
f880ba5e5b
commit
44c3328eb4
|
@ -1,7 +1,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=fff-network
|
PKG_NAME:=fff-network
|
||||||
PKG_RELEASE:=47
|
PKG_RELEASE:=48
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
config globals 'globals'
|
||||||
|
option packet_steering '1'
|
||||||
|
|
||||||
config interface 'loopback'
|
config interface 'loopback'
|
||||||
option ifname 'lo'
|
option ifname 'lo'
|
||||||
option proto 'static'
|
option proto 'static'
|
||||||
|
|
|
@ -242,8 +242,6 @@ else
|
||||||
addr=$(owipcalc "$prefix" add "::$(ipMacSuffix "$ROUTERMAC")")
|
addr=$(owipcalc "$prefix" add "::$(ipMacSuffix "$ROUTERMAC")")
|
||||||
ip -6 addr add $addr dev br-client
|
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 set network.globals.ula_prefix=$prefix
|
||||||
uci -q add_list network.client.ip6addr=$addr
|
uci -q add_list network.client.ip6addr=$addr
|
||||||
uci -q set network.client.proto=static
|
uci -q set network.client.proto=static
|
||||||
|
|
Loading…
Reference in New Issue
Block a user