mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-15 18:03:30 +00:00
27 lines
805 B
Lua
27 lines
805 B
Lua
local m,s,o
|
|
local SYS = require "luci.sys"
|
|
|
|
m = Map("firewall")
|
|
m.title = translate("Linux Flow Offload Forwarding Engine Settings")
|
|
m.description = translate("Opensource Linux Flow Offload driver (Fast Path or HWNAT)")
|
|
m:append(Template("flow/status"))
|
|
|
|
s = m:section(TypedSection, "defaults", "")
|
|
s.addremove = false
|
|
s.anonymous = true
|
|
|
|
flow = s:option(Flag, "flow_offloading", translate("Enable"))
|
|
flow.default = 0
|
|
flow.rmempty = false
|
|
flow.description = translate("Enable software flow offloading for connections. (decrease cpu load / increase routing throughput)")
|
|
|
|
hw = s:option(Flag, "flow_offloading_hw", translate("HWNAT"))
|
|
hw.default = 0
|
|
hw.rmempty = false
|
|
hw.description = translate("Enable Hardware NAT (depends on hw capability like MTK 762x)")
|
|
hw:depends( "flow_offloading", 1)
|
|
|
|
|
|
|
|
return m
|