diff options
author | Paul Donald <newtwen+github@gmail.com> | 2024-04-30 15:15:58 +0200 |
---|---|---|
committer | Paul Donald <newtwen+github@gmail.com> | 2024-04-30 15:16:37 +0200 |
commit | c433e9f2c17476996e222ca8de2738cc9ea1aeff (patch) | |
tree | 1a112f5925c4af4396a3a1e2a827eadfecb6785a | |
parent | 2a3181782e2ce2840f41eb25b05f3f05310ef8bc (diff) |
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 <andreapesaresi82@gmail.com>
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js | 18 |
1 files changed, 16 insertions, 2 deletions
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 (<abbr title="Receive Packet Steering">RPS</abbr>)'), + _('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')); |