summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/model
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-05-20 11:56:42 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-05-20 11:56:42 +0000
commitf9f1b0ea33589bc0b2236eaec01c609360cb9b01 (patch)
tree90edcbb39aedf718e5b0cb1b7a08ab07658cd049 /modules/admin-full/luasrc/model
parent2b25a8b5ad97eccb5b2b5bdd46d6aa8462b025bb (diff)
modules/admin-full: readd jumbo frame passthrough support
Diffstat (limited to 'modules/admin-full/luasrc/model')
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua b/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
index b4ad864c61..c2f1c1fe54 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
@@ -24,6 +24,7 @@ m.uci:foreach("network", "switch",
local has_learn = nil
local has_vlan4k = nil
local has_ptpvid = nil
+ local has_jumbo3 = nil
local min_vid = 0
local max_vid = 16
local num_vlans = 16
@@ -76,6 +77,8 @@ m.uci:foreach("network", "switch",
elseif line:match(": enable_vlan4k") then
enable_vlan4k = true
+ elseif line:match(": max_length") then
+ has_jumbo3 = "max_length"
end
end
@@ -133,6 +136,12 @@ m.uci:foreach("network", "switch",
x.default = x.enabled
end
+ if has_jumbo3 then
+ x = s:option(Flag, has_jumbo3, translate("Enable Jumbo Frame passthrough"))
+ x.enabled = "3"
+ x.rmempty = true
+ end
+
if has_reset then
x = s:option(Flag, has_reset, translate("Reset switch during setup"))
x.default = x.enabled