From: Paul Donald Date: Tue, 30 Apr 2024 13:15:58 +0000 (+0200) Subject: luci-mod-network: manage new packet steering script X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c433e9f2c17476996e222ca8de2738cc9ea1aeff;p=project%2Fluci.git luci-mod-network: manage new packet steering script Due to the changing on script from this commit https://github.com/openwrt/openwrt/commit/7ebcf2fb9c5db8b75666761f5e767c91abb1f437 I suggest these changing to select "old style" or "new style" with steering_flow Signed-off-by: Andrea Pesaresi Signed-off-by: Paul Donald --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index 8825b5201c..3163b5515b 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -1595,9 +1595,23 @@ return view.extend({ _('This prefix is randomly generated at first install.')); o.datatype = 'cidr6'; - o = s.option(form.Flag, 'packet_steering', _('Packet Steering'), _('Enable packet steering across all CPUs. May help or hinder network speed.')); + o = s.option(form.ListValue, 'packet_steering', _('Packet Steering'), _('Enable packet steering across CPUs. May help or hinder network speed.')); + o.value('', _('Disabled')); + o.value('1',_('Enabled')); + o.value('2',_('Enabled (all CPUs)')); o.optional = true; - + + var steer_flow = uci.get('network', 'globals', 'steering_flows'); + + o = s.option(form.Value, 'steering_flows', _('Steering flows (RPS)'), + _('Directs packet flows to specific CPUs where the local socket owner listens (the local service).') + ' ' + + _('Note: this setting is for local services on the device only (not for forwarding).')); + o.value('', _('Standard: none')); + o.value('128', _('Suggested: 128')); + o.value('256', _('256')); + o.depends('packet_steering', '1'); + o.depends('packet_steering', '2'); + o.default = steer_flow; if (dslModemType != null) { s = m.section(form.TypedSection, 'dsl', _('DSL'));